diff --git a/downloader.sh b/downloader.sh index 553722f..56c17ed 100644 --- a/downloader.sh +++ b/downloader.sh @@ -53,6 +53,8 @@ do convert *.jpg ../chap$chapno.pdf echo "Cleaning up....." cd .. - gnome-open chap$chapno.pdf + if [ "$1" = "-o" ]; then + gnome-open chap$chapno.pdf + fi rm -rf $chap done