diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-07-31 14:13:44 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-07-31 14:13:44 +0000 |
commit | 8b1c848df48f3f10c3af0506f1552e4fda36f21d (patch) | |
tree | 48720d4dcf655397964231f160e1bd2690cade11 /yarns/morph.shell-lib | |
parent | a5978f1c2a9b492b9afc4f2a81a05dcf896b86af (diff) | |
download | morph-8b1c848df48f3f10c3af0506f1552e4fda36f21d.tar.gz |
Refactor code for clarity
Reported-by: Tiago Gomes
Diffstat (limited to 'yarns/morph.shell-lib')
-rw-r--r-- | yarns/morph.shell-lib | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib index f0a9c11b..4fb1eb10 100644 --- a/yarns/morph.shell-lib +++ b/yarns/morph.shell-lib @@ -85,10 +85,10 @@ is_file() assert_equal() { - case "$1" in - "$2") ;; - *) die "Expected '$1' and '$2' to be equal" ;; - esac + if [ "$1" != "$2" ] + then + die "Expected '$1' and '$2' to be equal" + fi } |