archbox/archboxcommand.bash
2020-10-28 16:06:06 +00:00

8 lines
179 B
Bash
Executable File

#!/bin/bash
source /etc/archbox.conf
COMMAND=$(echo $@ | tr ' ' '\ ')
[[ ! $1 = "--enter" ]] && chroot $CHROOT /bin/su -c "$COMMAND" $USER \
|| chroot $CHROOT /bin/su $USER