From 1c8ede9f6cc7da0354e7cc6d5e1d6ca6aa860779 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 22 Dec 2024 15:21:15 +0100 Subject: [PATCH] src/bin/diffman: Fix bug at parsing options We don't want multiple cases to match the option. The '*)' was matching any option. Fixes: f2dfd79facf0 (2024-12-13, "src/bin/diffman: Add default case") Signed-off-by: Alejandro Colomar --- src/bin/diffman | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/diffman b/src/bin/diffman index 921905c7e..172a825ec 100755 --- a/src/bin/diffman +++ b/src/bin/diffman @@ -22,11 +22,11 @@ err() while getopts "sU:w" opt; do case "$opt" in - s) s='-s'; ;;& - U) u="-U$OPTARG"; ;;& - w) w='-w'; ;;& - \?) exit 1; ;;& - *) exit 1; ;;& + s) s='-s'; ;; + U) u="-U$OPTARG"; ;; + w) w='-w'; ;; + \?) exit 1; ;; + *) exit 1; ;; esac; done; shift $((OPTIND-1)); -- 2.47.2