From 34aaa9f3dc4ef851d5ecbb3e97d1a0fdf946898b Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 1 Apr 2018 16:59:20 +0200 Subject: [PATCH] fix --- arch-install | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch-install b/arch-install index 4c4133f..432dad6 100755 --- a/arch-install +++ b/arch-install @@ -72,8 +72,10 @@ function secureumount() { umount ${device}1 fi - if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then - umount ${usbkeydevice} + if [ -n ${usbkeydevice} ]; then + if cat /proc/mounts | grep ${usbkeydevice} > /dev/null; then + umount ${usbkeydevice} + fi fi }