summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-08-24 17:07:23 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-08-24 17:20:59 +0200
commitbd826752c9dc8f01917ee831302b6220ad09603a (patch)
tree9b03c9d6722b5f0b261d6fcab5c8b8e4cbd7f19a
parentd0e684d2e998a9e7f241dc641c1f5273dba71036 (diff)
downloaddevtools-bd826752c9dc8f01917ee831302b6220ad09603a.tar.gz
devtools-bd826752c9dc8f01917ee831302b6220ad09603a.tar.xz
makechrootpkg: Also look for -e as --noextract
-rw-r--r--makechrootpkg.in12
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