From 16b1b084e6b5eefc5f8155b52b47e0ab6d6b93ba Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 28 May 2015 13:34:35 +0300 Subject: [PATCH] mirror: Exit when invalid command line options are given to sync-mirrors. --- mirror/files/sync-mirrors | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mirror/files/sync-mirrors b/mirror/files/sync-mirrors index 28a4d82..87a7498 100755 --- a/mirror/files/sync-mirrors +++ b/mirror/files/sync-mirrors @@ -50,6 +50,10 @@ while getopts "vhln" c ; do NOOP=" (DRY RUN)" EXTRA_OPTS="${EXTRA_OPTS} -n" ;; + *) + usage + exit 1 + ;; esac done