From 0315bef39beaf1b5105b3ebc1cba914d67aae8f7 Mon Sep 17 00:00:00 2001 From: DarkSouL Date: Tue, 15 Nov 2016 23:25:04 +0530 Subject: [PATCH] Fixed #9: Added the feature to choose whether to open the downloaded file with firefox or chrome --- page.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/page.sh b/page.sh index 390e96e..22019c3 100644 --- a/page.sh +++ b/page.sh @@ -1,3 +1,12 @@ +#Gets the index page of mangareader.net + wget -O index.html www.mangareader.net -google-chrome-stable index.html + +#Open the index page on Google Chrome or Firefox according to the users choice + +if [ "$1" = "-f" ]; then + firefox index.html +else + google-chrome-stable index.html +fi