From bd826752c9dc8f01917ee831302b6220ad09603a Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 24 Aug 2017 17:07:23 +0200 Subject: makechrootpkg: Also look for -e as --noextract --- makechrootpkg.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'makechrootpkg.in') 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 -- cgit v1.2.3-70-g09d2