Skip to content

Commit

Permalink
adjust options parsing for new error handling method
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed Dec 7, 2023
1 parent 6db61f4 commit 406f1e4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,10 @@ fi
# cmdline handling {{{
CMDLINE_OPTS=mirror:,iso:,release:,target:,mntpoint:,debopt:,defaultinterfaces,interactive,nodebootstrap,nointerfaces,nokernel,nopackages,filesystem:,config:,confdir:,packages:,chroot-scripts:,scripts:,post-scripts:,pre-scripts:,debconf:,vm,vmfile,vmsize:,vmefi,keep_src_list,hostname:,password:,nopassword,grmlrepos,backportrepos,bootappend:,grub:,efi:,arch:,insecure,verbose,help,version,force,debug,contrib,non-free,remove-configs,sshcopyid,sshcopyauth

_opt_temp=$(getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long \
$CMDLINE_OPTS -- "$@")

if [ $? != 0 ]; then
eerror "Try 'grml-debootstrap --help' for more information."; eend 1; exit 1
if ! _opt_temp=$(getopt --name grml-debootstrap -o +m:i:r:t:p:c:d:vhV --long \
$CMDLINE_OPTS -- "$@"); then
eerror "Try 'grml-debootstrap --help' for more information."
bailout 1
fi
eval set -- "$_opt_temp"

Expand Down

0 comments on commit 406f1e4

Please sign in to comment.