Add option to check file if network is shoddy.
Avoids hitting network on bad connections.
This commit is contained in:
parent
c523eb5d3b
commit
aafd95a24b
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ set -e
|
|||
/usr/bin/git status > /dev/null
|
||||
|
||||
# Make sure machine is up. set -e will ensure that.
|
||||
if [ -f $HOME/.shoddy-network ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
/bin/ping -q -w 20 -c 5 $HOME_MACHINE > /dev/null 2>&1
|
||||
|
||||
cd ~/calendars/personal/private/bkuhn
|
||||
|
|
Loading…
Add table
Reference in a new issue