Update pibackup.sh
This commit is contained in:
@@ -28,13 +28,13 @@ if [ "$1" != "update" ]; then
|
||||
until [ $c -gt 179 ]; do
|
||||
if [ -f ${MountPoint}/mounted ]; then
|
||||
echo "$(date) - Backup Drive mounted"
|
||||
c=100
|
||||
c=10000
|
||||
else
|
||||
((c++))
|
||||
sleep 1s
|
||||
fi
|
||||
done
|
||||
if [ $c != 100 ]; then
|
||||
if [ $c != 10000 ]; then
|
||||
echo "$(date) - Backup Drive COULD NOT be mounted... exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user