From 315ce2397efab99a8a15cd2bb73367b00f178418 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 2 Apr 2021 11:08:30 -0500 Subject: Use if [[ ... ]] instead of [ ... ] and change retval check in setupdisk when checking exit code when creating partition. --- mountvirtfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mountvirtfs.sh') 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 -- cgit v1.2.3-54-g00ecf