make directory configurable
All checks were successful
App Image CI / Build app image (push) Successful in -1m26s
Docker Image CI / Build build images (arch) (push) Successful in -5s
Docker Image CI / Build build images (artix) (push) Successful in -34s
NPM Audit Check / Check NPM audit (push) Successful in -2m11s

This commit is contained in:
2025-10-27 23:54:01 -05:00
parent a5c77c1440
commit 5a16695338

View File

@@ -34,10 +34,12 @@ changeDir() {
fi fi
} }
if [ ! -d "/home/user/pkg" ]; then DIR="${WORKSPACE:-/home/user/pkg}"
git clone "$REPO" /home/user/pkg || exit $?
if [ ! -d "$DIR" ]; then
git clone "$REPO" "$DIR" || exit $?
fi fi
cd /home/user/pkg && \ cd "$DIR" && \
checkoutCommit && \ checkoutCommit && \
applyPatch && \ applyPatch && \
sudo pacman -Syu --noconfirm --noprogressbar &&\ sudo pacman -Syu --noconfirm --noprogressbar &&\