Skip to content

Commit

Permalink
A more universal opening using xdg-open instead gnome-open
Browse files Browse the repository at this point in the history
  • Loading branch information
Compro Prasad committed Jan 26, 2017
1 parent ed5fd01 commit 7d39008
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BASH/downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ do
c=$i
fi
done
if [ "$t" -ne 0 ]; then
if [ "$t" -ne 0 ]; then
if [ "$c" -gt "$t" ]; then
end_loop=c-1
else
Expand All @@ -23,7 +23,7 @@ if [ "$t" -ne 0 ]; then
do
manga+="${!i}";
manga+="-";
done
done
manga=${manga::-1} #removing terminal '-'
else
echo "Enter Manga name:"
Expand Down Expand Up @@ -65,7 +65,7 @@ do
fi
rm index.html
declare -i i=1
while true #an infinte while loop
while true #an infinte while loop
do
echo "Downloading page $i of chapter $chap....."
wget -o log.txt -O $i.html -c www.mangareader.net/$manga/$chap/$i # Downloads the main webpage
Expand Down Expand Up @@ -96,6 +96,6 @@ do
path=$(pwd)
echo -e "Your downloaded file is in this path:\n" $path
cd ..
gnome-open chap$chapno.pdf
xdg-open chap$chapno.pdf
rm -rf $chap
done

0 comments on commit 7d39008

Please sign in to comment.