From a8cccfcbdc85b6834ca4399f38961de0976e567f Mon Sep 17 00:00:00 2001 From: Daniel Gray Date: Tue, 24 Nov 2015 21:16:39 -0600 Subject: [PATCH] use comparison instead of assignment --- Examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index 43a6b8b..bf8ebb3 100644 --- a/Examples.md +++ b/Examples.md @@ -349,9 +349,9 @@ fstash() { sha="${out[-1]}" sha="${sha%% *}" [[ -z "$sha" ]] && continue - if [[ "$k" = 'ctrl-d' ]]; then + if [[ "$k" == 'ctrl-d' ]]; then git diff $sha - elif [[ "$k" = 'ctrl-b' ]]; then + elif [[ "$k" == 'ctrl-b' ]]; then git stash branch "stash-$sha" $sha break; else