diff --git a/redyt b/redyt index 66b7f95..df27afd 100755 --- a/redyt +++ b/redyt @@ -73,7 +73,7 @@ if [ ! -d "$cachedir" ]; then fi # Send a notification -[ $VERBOSE -eq 1 ] && $notifier "Redyt" "📩 Downloading your 🖼️ Memes" +[[ $VERBOSE -eq 1 ]] && $notifier "Redyt" "📩 Downloading your 🖼️ Memes" # Download the subreddit feed, containing only the # first 100 entries (limit), and store it inside @@ -94,15 +94,15 @@ for img in $imgs; do done # Send a notification -[ $VERBOSE -eq 1 ] && $notifier "Redyt" "👍 Download Finished, Enjoy! 😊" +[[ $VERBOSE -eq 1 ]] && $notifier "Redyt" "👍 Download Finished, Enjoy! 😊" rm "$cachedir/tmp.json" # Display the images -if [ $FILTER -eq 1 ]; then +if [[ $FILTER -eq 1 ]]; then sxiv -a -o "$cachedir" else sxiv -a "$cachedir" fi # Once finished, remove all of the cached images -[ ! $KEEP -eq 1 ] && rm "${cachedir:?}"/* +[[ ! $KEEP -eq 1 ]] && rm "${cachedir:?}"/*