From 60c9fe2557f30d81bfd5b6bcf866bc6a80e6273a Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 12 Sep 2024 09:26:32 +0200 Subject: exit with failure on illegal option --- bin/pacman-offline | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/pacman-offline b/bin/pacman-offline index ae2ec19..58b81f2 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -32,6 +32,11 @@ while getopts 'cfhprty' opt; do help exit 0 ;; + c|f|p|r|t|y) + ;; + *) + exit 1 + ;; esac done -- cgit v1.2.3-70-g09d2