diff options
author | Rasmus Steinke <rasi@xssn.at> | 2016-01-26 19:32:18 +0100 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2016-01-26 19:32:18 +0100 |
commit | 27d36d0a4295a48c81ad10c13ab09a35aebd41f7 (patch) | |
tree | 5956de52c75485c31a613ee8cf953d4c9f54ef89 | |
parent | 882e9badc900cf9a70d521f4322a214faba0c052 (diff) | |
download | perl-app-clerk-27d36d0a4295a48c81ad10c13ab09a35aebd41f7.tar.gz perl-app-clerk-27d36d0a4295a48c81ad10c13ab09a35aebd41f7.tar.xz |
exit after update
-rwxr-xr-x | clerk | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -194,10 +194,11 @@ updateCache () { > $HOME/.config/clerk/tracks.cache notify-send "clerk" "finished updating cache files" # | gawk -F '\t' '{ printf "%.2s\t%.40s\t%.40s\t%.200s\t%.500s\n", $1, $2, $3, $4, $5, $6 }' \ + exit } if [[ $1 == "--update" ]]; then - : + updateCache else date=$(mpc stats | grep 'DB Updated: ') file="$HOME/.config/clerk/.lastupdate" @@ -206,6 +207,7 @@ else else updateCache echo "${date}" > "${file}" + break fi fi @@ -2018,10 +2020,10 @@ while :; do fi break ;; - --update) - updateCache - break - ;; +# --update) +# updateCache +# break +# ;; --queue) if [[ ! $2 ]]; then echo "Missing argument for --queue" |