From f9a2c7f20a7df079c05e27680f4d6ce87f5a27c8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 5 Mar 2023 16:15:42 +0300 Subject: [PATCH] Feat(submodules/remove): Improve error message --- submodules/remove | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/submodules/remove b/submodules/remove index 685fbb5..f8d6d94 100755 --- a/submodules/remove +++ b/submodules/remove @@ -6,9 +6,10 @@ if [ $# != 1 ]; then exit 1 fi -cd `git rev-parse --show-toplevel` || exit 1 +cd "`git rev-parse --show-toplevel`" || exit 1 if [ \! -f .gitmodules ]; then echo "The command must be run in the top-level directory" >&2 + echo "of a repository with submodules" >&2 exit 1 fi -- 2.39.5