Commit 14ba11dc authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

mkarchroot: pass inline shell script to chroot

parent be5505a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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