From bc62b5835f1a18b3a72dfdcb58e37188c72501fb Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sun, 23 Nov 2014 14:38:32 +0000 Subject: Quote variables and use = instead of == --- yarns/implementations.yarn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yarns') diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn index 83ff03c6..8b43286f 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -755,7 +755,7 @@ them, so they can be added to the end of the implements section. # eval used so word splitting in the text is preserved eval set -- '"$@"' $MATCH_9 fi - if [ $MATCH_3 == "deploys" ]; then run_morph "$@" + if [ "$MATCH_3" = "deploys" ]; then run_morph "$@" else attempt_morph "$@"; fi IMPLEMENTS WHEN the user (attempts to deploy|deploys) (.*) from cluster (\S+) in branch (\S+) @@ -763,7 +763,7 @@ them, so they can be added to the end of the implements section. set -- deploy "$MATCH_3" systems=$(echo "$MATCH_2" | sed -e 's/, /\n/g' -e 's/ and /\n/g') set -- "$@" $systems - if [ $MATCH_1 == "deploys" ]; then run_morph "$@" + if [ "$MATCH_1" = "deploys" ]; then run_morph "$@" else attempt_morph "$@"; fi IMPLEMENTS WHEN the user (attempts to upgrade|upgrades) the (system|cluster) (\S+) in branch (\S+)( with options (.*))? @@ -773,7 +773,7 @@ them, so they can be added to the end of the implements section. # eval used so word splitting in the text is preserved eval set -- '"$@"' $MATCH_6 fi - if [ $MATCH_1 == "upgrades" ]; then run_morph "$@" + if [ "$MATCH_1" = "upgrades" ]; then run_morph "$@" else attempt_morph "$@"; fi Implementations sections for reading error messages -- cgit v1.2.1