fix publish.sh: ignore untracked files in dirty-check
This commit is contained in:
+1
-1
@@ -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"
|
||||
exit 1
|
||||
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."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user