Fixed exec bug

This commit is contained in:
Timmy
2026-07-15 14:55:27 +01:00
parent 549e0349d7
commit 2a7db16a77
3 changed files with 40 additions and 60 deletions
+8
View File
@@ -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 "$@"