]> git.phdru.name Git - git-scripts.git/blobdiff - submodules/unabsorbgitdirs-recursive
Style(unabsorbgitdirs): Use `[]` instead of `test`
[git-scripts.git] / submodules / unabsorbgitdirs-recursive
index 72b4464a6ceb8ba54acc8eb3d4fd12b462b2fdb8..b6ff9cc13fb13c9342738ca06b175067a9a20b92 100755 (executable)
@@ -18,14 +18,14 @@ cd "`git rev-parse --show-toplevel`"
 unset GIT_DIR
 
 # If .git/ subdirectory is already here
-test -d .git && exit 0
+[ -d .git ] && exit 0
 
-if ! test -f .git; then
+if ! [ -f .git ]; then
     echo "Error: Cannot find gitlink, aborting" >&2
     exit 1
 fi
 
-if test -f .gitmodules; then
+if [ -f .gitmodules ]; then
     git submodule foreach "$PROG_DIR"/"`basename \"$0\"`"
 fi