aboutsummaryrefslogtreecommitdiffstats
path: root/mountvirtfs.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 11:08:30 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 11:08:30 -0500
commit315ce2397efab99a8a15cd2bb73367b00f178418 (patch)
treed9798c354440ce542c2a9c5e1b93024ee56df99e /mountvirtfs.sh
parente8c0f5a1a0d7ccee510fa59e577cccd46d68e3f8 (diff)
Use if [[ ... ]] instead of [ ... ] and change retval check in setupdisk when checking exit code when creating partition.
Diffstat (limited to 'mountvirtfs.sh')
-rw-r--r--mountvirtfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/mountvirtfs.sh b/mountvirtfs.sh
index 2849dad..4c016e5 100644
--- a/mountvirtfs.sh
+++ b/mountvirtfs.sh
@@ -27,6 +27,6 @@ else
printf "%b" " ${IYLW}${LFS}/run${IGRN} is already mounted${RST}\n"
fi
-if [ -h "${LFS}"/dev/shm ]; then
+if [[ -h "${LFS}"/dev/shm ]]; then
sudo mkdir -pv "${LFS}"/"$(readlink "${LFS}"/dev/shm)"
fi