mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-12-06 01:38:23 +01:00
Fix bug execl function
This commit is contained in:
1 parent
1d66002c1f
commit
34f78c6057
1 file changed
+2
-2
@@ -72,9 +72,9 @@ function pacmanerror {
|
|||||||
function execl {
|
function execl {
|
||||||
local command
|
local command
|
||||||
if [[ $1 != "chroot" && $1 != "chuser" ]];then #If it runs normally
|
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
|
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
|
if [[ $1 = "chroot" ]];then #If it runs in the chroot
|
||||||
chroot /mnt /bin/bash -c "$command"
|
chroot /mnt /bin/bash -c "$command"
|
||||||
elif [[ $1 = "chuser" ]];then #If it has to run in the created user in chroot
|
elif [[ $1 = "chuser" ]];then #If it has to run in the created user in chroot
|
||||||
|
|||||||
Reference in new issue
Block a user