diff --git a/archboxcommand.bash b/archboxcommand.bash index 13fe7ba..af00d00 100755 --- a/archboxcommand.bash +++ b/archboxcommand.bash @@ -3,5 +3,5 @@ source /etc/archbox.conf COMMAND=$(echo $@ | tr ' ' '\ ') -[[ ! $1 = "--enter" ]] && chroot $CHROOT /bin/su -c "$COMMAND" $USER \ - || chroot $CHROOT /bin/su $USER +[[ $1 = "--enter" ]] && chroot $CHROOT /bin/su $USER \ + || chroot $CHROOT /bin/su -c "$COMMAND" $USER