From 204ac1411dd5ad1e51878172d50dd3e7b4835bea Mon Sep 17 00:00:00 2001 From: Tim Allen Date: Tue, 18 Jan 2011 00:22:55 -0800 Subject: [PATCH] Fix another "==" -> "=" bashism. I notice it doesn't quite work on my Ubuntu system - if I "cd version" and run "../redo", I get the following output: redo all redo vars redo gitvars [: 24: %H: unexpected operator [: 24: %d: unexpected operator [: 24: %ci: unexpected operator ...and then a hang. --- version/gitvars.do | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/gitvars.do b/version/gitvars.do index 0f2e698..9f52c62 100644 --- a/version/gitvars.do +++ b/version/gitvars.do @@ -13,7 +13,7 @@ while read line; do if [ "$x" != "$line" ]; then # git didn't substitute it x=${x%\$} # remove trailing $ - if [ "$x" == "%d" ]; then + if [ "$x" = "%d" ]; then tag=$(git describe --match="$PROD-*") x="(tag: $tag)" else