We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4810eb commit 3360d67Copy full SHA for 3360d67
python38-slim/s2i/bin/run
@@ -23,8 +23,11 @@ fi
23
if [ ! -z "$APP_SCRIPT" ]; then
24
if [[ -f "$APP_SCRIPT" ]]; then
25
echo "---> Running application from script ($APP_SCRIPT) ..."
26
- chmod +x "./$APP_SCRIPT"
27
- "./$APP_SCRIPT"
+ if [[ "$APP_SCRIPT" != /* ]]; then
+ APP_SCRIPT="$APP_ROOT/src/$APP_SCRIPT"
28
+ fi
29
+ chmod +x "$APP_SCRIPT"
30
+ "$APP_SCRIPT"
31
elif [[ -z "$APP_SCRIPT_DEFAULT" ]]; then
32
echo "ERROR: file '$APP_SCRIPT' not found." && exit 1
33
fi
0 commit comments