From: Oleg Broytman Date: Mon, 18 Nov 2024 09:41:29 +0000 (+0300) Subject: Fix(submodules/remove): Add external quotes X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=git-scripts.git Fix(submodules/remove): Add external quotes --- diff --git a/submodules/remove b/submodules/remove index 4906a0b..d66ef34 100755 --- a/submodules/remove +++ b/submodules/remove @@ -34,6 +34,6 @@ if [ \! -s .gitmodules ]; then git rm -f .gitmodules fi && -if [ -z `ls -A "$GIT_DIR/modules"` ]; then +if [ -z "`ls -A \"$GIT_DIR/modules\"`" ]; then exec rmdir "$GIT_DIR/modules" fi