aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-07-24 15:24:54 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-07-24 15:24:54 -0700
commit323db9eacf7f984727ca84692b98413fc4c1528d (patch)
treef368ef38d7ebe04c738113fda113aa7113b73910
parenta70fa34c9de7c91a3fda4fdc2303b405e08adc5b (diff)
downloadgit-remote-gcrypt-323db9eacf7f984727ca84692b98413fc4c1528d.tar.gz
avoid bashism
git-remote-gcrypt is POSIX sh. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgit-remote-gcrypt2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 3e209e8..0cd4c0e 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -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