aboutsummaryrefslogtreecommitdiff
path: root/scripts-build/sdep-clear
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-22 09:10:09 +0100
committerSebastiano Tronto <sebastiano.tronto@gmail.com>2021-12-22 09:10:09 +0100
commitd506146c55ffa28ed8f5ba2d7ebd496e60e6a8d4 (patch)
tree892cbe9b74dd914bc5b7e6148a4cfe115eaf4f76 /scripts-build/sdep-clear
parent9902b66c098b51ac91785eb5d929a73b981ce08c (diff)
downloadsdep-d506146c55ffa28ed8f5ba2d7ebd496e60e6a8d4.tar.gz
sdep-d506146c55ffa28ed8f5ba2d7ebd496e60e6a8d4.zip
added a script to check past events and notify
Diffstat (limited to '')
-rw-r--r--scripts-build/sdep-clear11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts-build/sdep-clear b/scripts-build/sdep-clear
new file mode 100644
index 0000000..e30fd4d
--- /dev/null
+++ b/scripts-build/sdep-clear
@@ -0,0 +1,11 @@
1#!/bin/sh
2
3# Removes old events from specified file (default: /home/sebastiano/.local/share/sdep/once).
4
5# Usage: sdep-clear [file]
6
7file="/home/sebastiano/.local/share/sdep/${1:-once}"
8temp=$(mktemp)
9
10sdep -t <"$file" >"$temp"
11mv "$temp" "$file"

Generated with cgit - Back to sebastiano.tronto.net