From 47e64888ff3762ad80f12ca0a87a20d33ebb2a53 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sat, 28 Jul 2018 19:00:09 +0200 Subject: [PATCH] fix --- arch-installpi-spectre_os.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch-installpi-spectre_os.sh b/arch-installpi-spectre_os.sh index ff5ad74..8cfbd8d 100755 --- a/arch-installpi-spectre_os.sh +++ b/arch-installpi-spectre_os.sh @@ -40,21 +40,21 @@ else apt-get install bsdtar dosfstools -y fi -if cat /proc/mounts | grep /dev/"$device"1 > /dev/null; then +if cat /proc/mounts | grep ${device}1 > /dev/null; then echo "gemountet" - umount /dev/"$device"1 + umount ${device}1 else echo "nicht gemountet" fi -if cat /proc/mounts | grep /dev/"$device"2 > /dev/null; then +if cat /proc/mounts | grep ${device}2 > /dev/null; then echo "gemountet" - umount /dev/"$device"2 + umount ${device}2 else echo "nicht gemountet" fi -fdisk -W always /dev/"$device" <