Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshkvn authored and pandusonu2 committed May 1, 2018
1 parent c84479b commit f36dbfd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions BASH/downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ do
if [ "${!i}" = "--chap" ] || [ "${!i}" = "-c" ]; then
c=$i
fi
if [ "${!i}" = "-fo" ]; then
x=$i
fi

done
if [ "$t" -ne 0 ]; then
if [ "$c" -gt "$t" ]; then
Expand Down Expand Up @@ -98,6 +102,10 @@ do
path=$(pwd)
echo -e "Your downloaded file is in this path:\n" $path
cd ..
gnome-open chap$chapno.pdf
rm -rf $chap
if [ "$x" != "" ]; then
nautilus $path
else
gnome-open chap$chapno.pdf
rm -rf $chap
fi
done

0 comments on commit f36dbfd

Please sign in to comment.