From e7b891999e21778941dffe66eef5446ceb1995c8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 6 Jul 2016 17:23:32 +0200 Subject: scripts/restore-factory: indicate when the operation is aborted In interactive mode, exactly "Yes" is expected. The script would silently fail and only return 1, making it very confusing when the user would type "yes". Now it also reports "Aborted" before exiting. --- scripts/restore-factory | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/restore-factory b/scripts/restore-factory index cd43767..2ae37d2 100755 --- a/scripts/restore-factory +++ b/scripts/restore-factory @@ -122,6 +122,7 @@ if [ "$1" != "-f" ] ; then echo "(No/Yes)" read resp if [ "$resp" != "Yes" ] ; then + echo "Aborted." exit 1 fi fi -- 1.7.12.1