From 78432634fb16be6a4c88eb801919ab33d1bcc364 Mon Sep 17 00:00:00 2001 From: Emanuele Petriglia Date: Sun, 17 Jun 2018 19:53:52 +0200 Subject: [PATCH] Allow to parse old options for updater.sh --- updater.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/updater.sh b/updater.sh index ff31bf0..e185976 100755 --- a/updater.sh +++ b/updater.sh @@ -218,8 +218,15 @@ while :; do --help|-h) shift; SHOW_HELP="true";; --version|-v) shift; SHOW_VERSION="true";; --backup|-b) shift; MAKE_BACKUP="true";; + + # Deprecated options. + -donotupdate) shift; warn "'-donotupdate' is a deprecated option";; + -update) shift; warn "'-update' is a deprecated option";; + + # Special cases. "") break;; # Default case: no more options. *) error "Unrecognized option '$1'";; + esac done