summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2017-08-24 17:07:23 +0200
committerErich Eckner <git@eckner.net>2017-08-25 10:15:34 +0200
commit200b010de3892cbb9e74f69fb7d590afa384d3ae (patch)
treec5db044e954629c7f8d77a391eee6f705e822d69
parent6cf3f3eee2a0720e07f657200519449fd65c7525 (diff)
downloaddevtools32-200b010de3892cbb9e74f69fb7d590afa384d3ae.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 4908f3b..71e527d 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -353,13 +353,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