summaryrefslogtreecommitdiff
path: root/src/chroot-tools/libremakepkg
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-09-19 04:14:43 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:53:31 -0500
commitb72cf868a9ec37d4626932e5b6fb27165c1f5147 (patch)
tree97d2241ddc12dcd078d5713e3e2020671e66987b /src/chroot-tools/libremakepkg
parentf45dbef28349738deff9394b70476a1c670fc1ef (diff)
housekeeping
Diffstat (limited to 'src/chroot-tools/libremakepkg')
-rwxr-xr-xsrc/chroot-tools/libremakepkg19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index 20fcb6a..f6c6c80 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -205,17 +205,14 @@ main() {
# Parse command line options ###########################################
while getopts 'n:l:w:r:NRS:h' flag ; do
case "${flag}" in
- n) if $INCHROOT; then err_chflag "$flag"; else
- chroot=$OPTARG; fi;;
- l) if $INCHROOT; then err_chflag "$flag"; else
- copy=$OPTARG; fi;;
- w|r) if $INCHROOT; then err_chflag "$flag"; else
- librechroot_flags+=(-$flag "$OPTARG"); fi;;
- N) NONET=false;;
- R) repack=true; makepkg_args+=(-R);;
- S) srcpkg=$OPTARG;;
- h) usage; exit $EXIT_SUCCESS;;
- *) usage >&2; exit $EXIT_INVALIDARGUMENT;;
+ n ) chroot=$OPTARG ; ! $INCHROOT || err_chflag "$flag";;
+ l ) copy=$OPTARG ; ! $INCHROOT || err_chflag "$flag";;
+ w|r) librechroot_flags+=(-$flag "$OPTARG") ; ! $INCHROOT || err_chflag "$flag";;
+ N ) NONET=false;;
+ R ) repack=true; makepkg_args+=(-R);;
+ S ) srcpkg=$OPTARG;;
+ h ) usage; exit $EXIT_SUCCESS;;
+ * ) usage >&2; exit $EXIT_INVALIDARGUMENT;;
esac
done
shift $((OPTIND - 1))