fix: workdir switching for node containers

This commit is contained in:
2026-08-31 12:44:46 +02:00
parent bbec6e3397
commit 5ca50bcfa2
2 changed files with 22 additions and 5 deletions
+4 -4
View File
@@ -20,19 +20,19 @@ echo "
Setting workdir from current dir, which is $(pwd)
"
if [ -n "$WORKDIR" ]; then
cd "$WORKDIR"
cd "./$WORKDIR"
fi
echo "
Running npm command
"
npm run $NPM_CMD >/tmp/log.txt || compile_fail=1
npm run $NPM_CMD >/tmp/log.txt || command_fail=1
if [ ${compile_fail:-0} -eq 1 ]; then
if [ ${command_fail:-0} -eq 1 ]; then
cat /tmp/log.txt
echo "
==> Compile has failed. See log above
==> Command has failed. See log above
"
exit 1
else