Fixed exec bug
This commit is contained in:
@@ -75,4 +75,12 @@ if [ -d /workspace/frontend ] && [ -f /workspace/frontend/package.json ]; then
|
||||
cd /workspace
|
||||
fi
|
||||
|
||||
# If a rebuilt binary exists (from rebuild_and_restart or upgrade), prefer it
|
||||
# over the image-baked /usr/local/bin/huskies.
|
||||
REBUILT="/app/target/release/huskies"
|
||||
if [ -x "$REBUILT" ] && [ "$1" = "huskies" ]; then
|
||||
shift
|
||||
exec "$REBUILT" "$@"
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user