From a740fdb0064fe8672cfe2b22c0a57a887a27deab Mon Sep 17 00:00:00 2001 From: JSTayco Date: Fri, 31 Mar 2023 21:09:43 -0700 Subject: [PATCH] Update setup.sh --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 25b4d00..a6b5277 100755 --- a/setup.sh +++ b/setup.sh @@ -319,7 +319,7 @@ update_kohya_ss() { if [ "$SKIP_GIT_UPDATE" = false ]; then if command -v git >/dev/null; then # First, we make sure there are no changes that need to be made in git, so no work is lost. - if [ -z "$(git -C "$DIR" status --porcelain=v1 >/dev/null)" ] && + if [ "$(git -C "$DIR" status --porcelain=v1 >/dev/null)" == "" ] && echo "These files need to be committed or discarded: " >&4 && git -C "$DIR" status >&4; then echo "There are changes that need to be committed or discarded in the repo in $DIR."