Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions redyt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:?}"/*