summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/libremakepkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg
index d6db0fd..a459009 100755
--- a/src/chroot-tools/libremakepkg
+++ b/src/chroot-tools/libremakepkg
@@ -121,14 +121,14 @@ build() (
local copydir=$1; shift
local repack=$1; shift
- local netflag=''
local run=()
if $INCHROOT; then
- ! $NONET || netflag='-N'
run=(unshare)
+ if $NONET; then run+=('-n'); fi
else
- ! $NONET || netflag='-n'
- run=(librechroot "${librechroot_flags[@]}" run)
+ run=(librechroot "${librechroot_flags[@]}")
+ if $NONET; then run+=('-N'); fi
+ run+=(run)
fi
prepare_chroot "$copydir" "$LIBREHOME" "$repack" false