avoid bashism
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 24 Jul 2020 22:24:54 +0000 (15:24 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Fri, 24 Jul 2020 22:24:54 +0000 (15:24 -0700)
git-remote-gcrypt is POSIX sh.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
git-remote-gcrypt

index 3e209e8b58867b3850c01589ba8b7e8600c1fefe..0cd4c0ec781750f313fbde9e7516e973f9277da9 100755 (executable)
@@ -751,7 +751,7 @@ do_push()
 
        while IFS=: read -r src_ dst_ # << +src:dst
        do
-               if [ "+" != "${src_:0:1}" ]
+               if [ $(echo "$src_" | cut -c1) != + ]
                then
                        force_passed=false
                fi