From 8b1c848df48f3f10c3af0506f1552e4fda36f21d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 31 Jul 2013 14:13:44 +0000 Subject: Refactor code for clarity Reported-by: Tiago Gomes --- yarns/morph.shell-lib | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'yarns') 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 } -- cgit v1.2.1