From cfcfd226ba1b39279ac7638485aea052364333f0 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Sat, 23 Mar 2019 20:12:33 -0500 Subject: [PATCH] Does not equal! --- update_o.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update_o.sh b/update_o.sh index 97cfefd..99b018b 100644 --- a/update_o.sh +++ b/update_o.sh @@ -20,7 +20,7 @@ do cat $f >> $TMP_DEST TEST=$($CHECKZONE $TLD "$TMP_DEST" | tail -n 1) - if [ "$TEST" == "OK" ]; then + if [ "$TEST" != "OK" ]; then echo "Failed to add ${f}.o to the main zone!" else echo "Processed ${f}.o Successfully" @@ -29,7 +29,7 @@ do fi VERIFY=$($CHECKZONE $TLD "$WORK_DIR$FILE_NAME" | tail -n 1) - if [ "$VERIFY" == "OK" ]; then + if [ "$VERIFY" != "OK" ]; then echo "Some unknown error occured: $WORK_DIR$FILE_NAME" exit 1 fi