Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Update README; internet connection check: show warning instead of error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsettrack4 committed Jun 1, 2019
1 parent 1d5169f commit 478ecbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Please run the commands below to setup the script. "Sudo" is not required on use

```bash
# Install all recommended applications to setup the epg environment completely:
sudo apt-get install phantomjs dialog curl wget libxml2-utils perl perl-doc cpan jq php git xml-twig-tool
sudo apt-get install phantomjs dialog curl wget libxml2-utils perl perl-doc jq php git xml-twig-tools

# Install CPAN and the required modules to parse JSON files
sudo cpan App:cpanminus
Expand Down
8 changes: 4 additions & 4 deletions epg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
clear
echo " --------------------------------------------"
echo " EASYEPG SIMPLE XMLTV GRABBER "
echo " Release v0.3.7 BETA - 2019/05/25 "
echo " Release v0.3.8 BETA - 2019/06/01 "
echo " powered by "
echo " "
echo " ==THE======================================="
Expand Down Expand Up @@ -477,8 +477,8 @@ fi

if ! ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` > /dev/null 2> /dev/null
then
printf "\n\n[ FATAL ERROR ] Internet connection is not available - Stop.\n"
exit 1
printf "\n\n[ WARNING ] Internet connection check failed! \n"
sleep 2s
fi


Expand All @@ -491,7 +491,7 @@ then
printf "\n\n[ FATAL ERROR ] Script environment is broken - Stop.\n"
exit 1
else
printf " OK!\n\n"
printf "\n\nSETUP OK!"
sleep 1s
fi

Expand Down

0 comments on commit 478ecbd

Please sign in to comment.