summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-31 14:13:44 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-31 14:13:44 +0000
commit8b1c848df48f3f10c3af0506f1552e4fda36f21d (patch)
tree48720d4dcf655397964231f160e1bd2690cade11 /yarns
parenta5978f1c2a9b492b9afc4f2a81a05dcf896b86af (diff)
downloadmorph-8b1c848df48f3f10c3af0506f1552e4fda36f21d.tar.gz
Refactor code for clarity
Reported-by: Tiago Gomes
Diffstat (limited to 'yarns')
-rw-r--r--yarns/morph.shell-lib8
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
}