summaryrefslogtreecommitdiff
path: root/dz-feed
blob: e11402bf5724d9e4c2776065eab4a173c7630bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

cache="$HOME/.cache/dz"

if [ "$1" = "-r" ] || [ ! -e "$cache" ]; then
  find "$HOME" -mindepth 1 \( -name ".*" -o -path "$HOME/cell" -o -path "$HOME/phone/*" \) -prune -o -print | \
  sed '/\.pdf$/!d' | sort > "$cache"

  notify-send "dz cache updated."
fi

cat "$cache"