Skip to content

Commit b407771

Browse files
committed
Check for directories when patching shebangs
1 parent 7a390da commit b407771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linuxdeploy-plugin-python.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ done
188188
cd "$APPDIR/${prefix}/bin"
189189
for exe in $(ls "${APPDIR}/${prefix}/bin"*)
190190
do
191-
if [[ -x "$exe" ]]; then
191+
if [[ -x "$exe" ]] && [[ ! -d "$exe" ]]; then
192192
sed -i '1s|^#!.*\(python[0-9.]*\).*|#!/bin/sh\n"exec" "$(dirname $(readlink -f $\{0\}))/../../bin/\1" "$0" "$@"|' "$exe"
193193
fi
194194
done

0 commit comments

Comments
 (0)