Fix accidental "archbox --enter" when non-zero return.
This commit is contained in:
parent
19e0ab94bf
commit
28a4025ee5
@ -3,5 +3,5 @@
|
|||||||
source /etc/archbox.conf
|
source /etc/archbox.conf
|
||||||
|
|
||||||
COMMAND=$(echo $@ | tr ' ' '\ ')
|
COMMAND=$(echo $@ | tr ' ' '\ ')
|
||||||
[[ ! $1 = "--enter" ]] && chroot $CHROOT /bin/su -c "$COMMAND" $USER \
|
[[ $1 = "--enter" ]] && chroot $CHROOT /bin/su $USER \
|
||||||
|| chroot $CHROOT /bin/su $USER
|
|| chroot $CHROOT /bin/su -c "$COMMAND" $USER
|
||||||
|
Loading…
Reference in New Issue
Block a user