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