From: Chris Sharp Date: Fri, 8 Aug 2014 21:54:12 +0000 (-0400) Subject: Revert "experimentation with this" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=40bb016bea79ee26c50dc3cfa3f7b07ba960ec47;p=contrib%2Fpines.git Revert "experimentation with this" This reverts commit 5502ecd7b06d4f2ae4423bb860f25561a5a55643. --- diff --git a/update-libips.sh b/update-libips.sh index 40e01a6..0e0cd95 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" = "(Y|y)]" ]; then +if [ "$ANSWER" = "[Yy]" ]; 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" = "(Y|y)" ]; then +if [ "$COPYFILE" = "[Yy]" ]; then CopyFile -elif [ "$COPYFILE" = "(N|n)" ]; then +elif [ "$COPYFILE" = "[Nn]" ]; then echo "Not copying file." exit; else