fix publish.sh: ignore untracked files in dirty-check

This commit is contained in:
Davide Scaini
2026-03-29 16:08:20 +02:00
parent 6fa7e2bea3
commit 89d44beb92
+1 -1
View File
@@ -20,7 +20,7 @@ if ! git -C "$LOCAL_DIR" remote get-url "$REMOTE" &>/dev/null; then
echo " git remote add ${REMOTE} https://github.com/brutsalvadi/bincio-activity.git" echo " git remote add ${REMOTE} https://github.com/brutsalvadi/bincio-activity.git"
exit 1 exit 1
fi fi
if [[ -n "$(git -C "$LOCAL_DIR" status --porcelain)" ]]; then if [[ -n "$(git -C "$LOCAL_DIR" status --porcelain --untracked-files=no)" ]]; then
echo "ERROR: uncommitted changes. Commit or stash first." echo "ERROR: uncommitted changes. Commit or stash first."
exit 1 exit 1
fi fi