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" <