comparison bin/fjail @ 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 5aab3a28895f
children 124faa20ae80
comparison
equal deleted inserted replaced
79:671130d10c21 80:f5cf08e8d246
234 case ${_opt} in 234 case ${_opt} in
235 h) 235 h)
236 echo "${USAGE}" 236 echo "${USAGE}"
237 exit 0 237 exit 0
238 ;; 238 ;;
239 \?|:) 239 \?)
240 exit 2; 240 exit 2;
241 ;;
242 *)
243 echo "ERROR: option handling failed" >&2
244 exit 2
241 ;; 245 ;;
242 esac 246 esac
243 done 247 done
244 248
245 # 249 #