From 34f78c60572c1f21376bb26e946479ef9bc42f71 Mon Sep 17 00:00:00 2001 From: Kevin Puertas Date: Tue, 29 Aug 2017 17:17:55 +0200 Subject: [PATCH] Fix bug execl function --- installer/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index c24c7e2..9298848 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -72,9 +72,9 @@ function pacmanerror { function execl { local command if [[ $1 != "chroot" && $1 != "chuser" ]];then #If it runs normally - "$*" + $* else #There is a chroot/chuser word and we have to delete it, and then use - command=`echo $command | cut -d" " -f2-` + command=`echo "$*" | cut -d" " -f2-` if [[ $1 = "chroot" ]];then #If it runs in the chroot chroot /mnt /bin/bash -c "$command" elif [[ $1 = "chuser" ]];then #If it has to run in the created user in chroot