diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-08-24 17:07:23 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2017-08-24 17:20:59 +0200 |
commit | bd826752c9dc8f01917ee831302b6220ad09603a (patch) | |
tree | 9b03c9d6722b5f0b261d6fcab5c8b8e4cbd7f19a /makechrootpkg.in | |
parent | d0e684d2e998a9e7f241dc641c1f5273dba71036 (diff) | |
download | devtools32-bd826752c9dc8f01917ee831302b6220ad09603a.tar.xz |
makechrootpkg: Also look for -e as --noextract
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index f8815d8..ef3f2ec 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -356,13 +356,13 @@ main() { # Pass all arguments after -- right to makepkg makepkg_args+=("${@:$OPTIND}") - # See if -R was passed to makepkg - for arg in "${@:OPTIND}"; do + # See if -R or -e was passed to makepkg + for arg in "${makepkg_args[@]}"; do case ${arg%%=*} in - -*R*|--repackage|--noextract) - keepbuilddir=true - break 2 - ;; + --repackage|--noextract) keepbuilddir=true; break ;; + --repackage|--noextract) keepbuilddir=true; break ;; + --*) ;; + -*R*|-*e*) keepbuilddir=true; break ;; esac done |