changeset 80:f5cf08e8d246

Handle the error case when option handling fails because of wrong case labels
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 15 Aug 2019 23:26:39 +0200
parents 671130d10c21
children 124faa20ae80
files bin/fjail
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/fjail	Thu Aug 15 22:56:11 2019 +0200
+++ b/bin/fjail	Thu Aug 15 23:26:39 2019 +0200
@@ -236,9 +236,13 @@
             echo "${USAGE}"
             exit 0
             ;;
-        \?|:)
+        \?)
             exit 2;
             ;;
+        *)
+            echo "ERROR: option handling failed" >&2
+            exit 2
+            ;;
     esac
 done