makechrootpkg: Also look for -e as --noextract

This commit is contained in:
Jan Alexander Steffens (heftig) 2017-08-24 17:07:23 +02:00
parent d0e684d2e9
commit bd826752c9
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 6 additions and 6 deletions

View File

@ -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