Wait for the browser to start opening

This commit is contained in:
Bob Mottram 2016-09-12 18:53:21 +01:00
parent 47f92b8365
commit eaaea4d886
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ case $sel in
echo $'Opening browser. Please wait...'
pkill $BROWSER
setsid sh -c "$BROWSER $BROWSER_OPTIONS $IPFS_FULL_URL$SUFFIX" > /dev/null 2>&1 < /dev/null &
# Need to wait a while for the browser to begin opening
sleep 3
fi
else
exit 1