summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-01-26 19:32:18 +0100
committerRasmus Steinke <rasi@xssn.at>2016-01-26 19:32:18 +0100
commit27d36d0a4295a48c81ad10c13ab09a35aebd41f7 (patch)
tree5956de52c75485c31a613ee8cf953d4c9f54ef89
parent882e9badc900cf9a70d521f4322a214faba0c052 (diff)
downloadperl-app-clerk-27d36d0a4295a48c81ad10c13ab09a35aebd41f7.tar.gz
perl-app-clerk-27d36d0a4295a48c81ad10c13ab09a35aebd41f7.tar.xz
exit after update
-rwxr-xr-xclerk12
1 files changed, 7 insertions, 5 deletions
diff --git a/clerk b/clerk
index cc92f70..9411dec 100755
--- a/clerk
+++ b/clerk
@@ -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"