cozybit/distro11s — pull request #21 by minshallj (2014-02-20 19:56:08+00:00)
Title: minor fix in provisioning script

``` diff
From b66590a08b78c500e353a3f19ed614a8d9bd35be Mon Sep 17 00:00:00 2001
From: Jacob Minshall
Date: Thu, 20 Feb 2014 11:51:24 -0800
Subject: [PATCH] stops infinite loop

Count will always be greater than 5 if we keep adding to it
---
scripts/provisioning.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/provisioning.sh b/scripts/provisioning.sh
index 87320d9..cad749c 100755
--- a/scripts/provisioning.sh
+++ b/scripts/provisioning.sh
@@ -66,7 +66,7 @@ if [ "${ISVALID}" != "0" ]; then
count=5
while [ ${count} -gt 0 ]; do
[ -e ${DEV}1 ] && break
- count=$((${count}+1))
+ count=$((${count}-1))
sleep 1
done
[ ! -e ${DEV}1 ] && { echo "Error: failed to find new partition ${DEV}1"; exit 1;}
--
1.7.10.4

```