From f938d9cc1c414a54a1ee8d638cea7d0ba388ea1a Mon Sep 17 00:00:00 2001 From: mergwyn Date: Wed, 25 Sep 2019 23:13:21 +0100 Subject: [PATCH] Correct incorrect sh syntax '==' is not valid in sh --- src/zfs-auto-snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zfs-auto-snapshot.sh b/src/zfs-auto-snapshot.sh index 806fbc5..cd88f0f 100644 --- a/src/zfs-auto-snapshot.sh +++ b/src/zfs-auto-snapshot.sh @@ -224,7 +224,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...] # main () # { -if [ "$(uname)" == "Darwin" ]; then +if [ "$(uname)" = "Darwin" ]; then GETOPT_BIN="$(brew --prefix gnu-getopt 2> /dev/null || echo /usr/local)/bin/getopt" else GETOPT_BIN="getopt"