]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-submodule.sh
grep portability fix: don't use "-e" or "-q"
[thirdparty/git.git] / git-submodule.sh
index 7171cb60ab4e6a49b84500bde43c04ea40501d6c..ceb22952aa940e1a13f0b6ccbf30fdc19bd9eba2 100755 (executable)
@@ -230,7 +230,7 @@ cmd_init()
                shift
        done
 
-       git ls-files --stage -- "$@" | grep -e '^160000 ' |
+       git ls-files --stage -- "$@" | grep '^160000 ' |
        while read mode sha1 stage path
        do
                # Skip already registered paths
@@ -284,7 +284,7 @@ cmd_update()
                shift
        done
 
-       git ls-files --stage -- "$@" | grep -e '^160000 ' |
+       git ls-files --stage -- "$@" | grep '^160000 ' |
        while read mode sha1 stage path
        do
                name=$(module_name "$path") || exit
@@ -367,7 +367,7 @@ cmd_status()
                shift
        done
 
-       git ls-files --stage -- "$@" | grep -e '^160000 ' |
+       git ls-files --stage -- "$@" | grep '^160000 ' |
        while read mode sha1 stage path
        do
                name=$(module_name "$path") || exit