From: Chris Sharp Date: Fri, 8 Aug 2014 21:54:25 +0000 (-0400) Subject: Revert "Make the answer case-insensitive" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=583a02cc77d7d195ac67c77a6b390ea04fa313f3;p=contrib%2Fpines.git Revert "Make the answer case-insensitive" This reverts commit f2271a59a608c2058af144e15402b2b6982b8386. --- diff --git a/update-libips.sh b/update-libips.sh index 0e0cd95..ad448d2 100755 --- a/update-libips.sh +++ b/update-libips.sh @@ -55,7 +55,7 @@ echo "The new line will be:" echo -e "$NEW_SHORTNAME\t$START_IP\t$END_IP" echo read -p "Is this correct? (y/n) " ANSWER -if [ "$ANSWER" = "[Yy]" ]; then +if [ "$ANSWER" = "y" ]; then echo "Backing up the original file..." cp $LIB_IPS_TXT $LIB_IPS_TXT.`date +%Y%m%d%H%M%S` echo "Adding the new entry to the file..." @@ -85,9 +85,9 @@ EditCopy () { cp $LIB_IPS_TXT $LIB_IPS_TXT.`date +%Y%m%d%H%M%S` $EDITOR $LIB_IPS_TXT read -p "Would you like to copy the file to the other brick heads? (y/n) " COPYFILE -if [ "$COPYFILE" = "[Yy]" ]; then +if [ "$COPYFILE" = "y" ]; then CopyFile -elif [ "$COPYFILE" = "[Nn]" ]; then +elif [ "$COPYFILE" = "n" ]; then echo "Not copying file." exit; else