diff --git a/setup.sh b/setup.sh index 3d795f3..a49e0bb 100644 --- a/setup.sh +++ b/setup.sh @@ -8,7 +8,6 @@ echo "Updating local packages..." apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null if [ "$?" = "0" ]; then echo "Done." - echo "" else echo "Failed to add universal repository, update apt repository - possibly bad network connection." exit 1 @@ -58,8 +57,8 @@ bootmirror=""; rootraidz=""; for disk in `echo "$disks"`; do bootmirror="$bootmi # wait for the partitions to show up for disk in `echo "$disks"` do - while ! [ -f "/dev/disk/by-id/${disk}-part3" ]; do - sleep 1 + while ! [ -e "/dev/disk/by-id/${disk}-part3" ]; do + sleep 1s done done