We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1c8cc commit 34a4a67Copy full SHA for 34a4a67
1 file changed
linuxdeploy-plugin-python.sh
@@ -161,7 +161,9 @@ done
161
cd "$APPDIR/${prefix}/bin"
162
for exe in $(ls "${APPDIR}/${prefix}/bin"*)
163
do
164
- sed -i '1s|^#!.*\(python[0-9.]*\)|#!/bin/sh\n"exec" "$(dirname $(readlink -f $\{0\}))/../../bin/\1" "$0" "$@"|' "$exe"
+ if [[ -f "$exe" ]] && [[ -x "$exe" ]]; then
165
+ sed -i '1s|^#!.*\(python[0-9.]*\)|#!/bin/sh\n"exec" "$(dirname $(readlink -f $\{0\}))/../../bin/\1" "$0" "$@"|' "$exe"
166
+ fi
167
done
168
169
0 commit comments