From 7f7dcef92a69c048a54a5f5419e9ed934c37bd14 Mon Sep 17 00:00:00 2001 From: Syahrial Agni Prasetya Date: Wed, 3 Mar 2021 00:55:16 +0700 Subject: [PATCH] Better readability. --- archboxinit.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/archboxinit.bash b/archboxinit.bash index f16e445..b19122e 100644 --- a/archboxinit.bash +++ b/archboxinit.bash @@ -31,7 +31,10 @@ case $1 in rbind /sys make-rslave rbind /dev make-rslave [[ $MOUNT_RUN = "yes" ]] && rbind /run - [[ $MOUNT_MOD = "yes" ]] && rbind $(readlink -f /lib/modules) && rbind /boot + if [[ $MOUNT_MOD = "yes" ]]; then + rbind $(readlink -f /lib/modules) + rbind /boot + fi [[ -d /var/lib/dbus ]] && rbind /var/lib/dbus for i in ${SHARED_FOLDER[@]}; do mkdir -p $CHROOT/$i @@ -62,7 +65,10 @@ case $1 in rmbind /sys rmbind /dev [[ $MOUNT_RUN = "yes" ]] && rmbind /run - [[ $MOUNT_MOD = "yes" ]] && rmbind $(readlink -f /lib/modules) && rmbind /boot + if [[ $MOUNT_MOD = "yes" ]]; then + rmbind $(readlink -f /lib/modules) + rmbind /boot + fi rmbind /var/lib/dbus for i in ${SHARED_FOLDER[@]}; do rmbind $i