From 14ba11dcdfc8f4e9c14b8d48a8e8009960079c4b Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 6 Jan 2011 10:28:10 +0100 Subject: mkarchroot: pass inline shell script to chroot --- mkarchroot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mkarchroot') diff --git a/mkarchroot b/mkarchroot index cc92387..5d30a6c 100755 --- a/mkarchroot +++ b/mkarchroot @@ -34,7 +34,7 @@ usage() { while getopts 'r:ufnhC:M:c:' arg; do case "${arg}" in r) RUN="$OPTARG" ;; - u) RUN='pacman -Syu --noconfirm; pacman -Qqu >/dev/null && pacman -Su --noconfirm' ;; + u) RUN='/bin/sh -c "pacman -Syu --noconfirm; pacman -Qqu >/dev/null && pacman -Su --noconfirm"' ;; f) FORCE='y' ;; C) pac_conf="$OPTARG" ;; M) makepkg_conf="$OPTARG" ;; @@ -157,7 +157,7 @@ if [ "$RUN" != "" ]; then chroot_mount copy_hostconf - chroot "${working_dir}" ${RUN} + eval chroot "${working_dir}" ${RUN} # }}} else -- cgit v1.2.3-70-g09d2