From 0bcca7b6808a02af3c4758c30eec9984d44dfac7 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 9 Feb 2022 19:13:45 +0100 Subject: Changed notification system to herbe. --- scripts-build/sdep-add | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 scripts-build/sdep-add (limited to 'scripts-build/sdep-add') diff --git a/scripts-build/sdep-add b/scripts-build/sdep-add deleted file mode 100644 index 7c25cdb..0000000 --- a/scripts-build/sdep-add +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# Adds a line to /home/sebastiano/.local/share/sdep/once. It is possible to specify a date, which will be -# read by date -d and prepended to the input text. -# -d is a non-portable option of GNU date. On some other systems one can -# accomplish the same with the -j option. - -# Usage: sdep-add [date] -# Example: sdep-add "next monday" - -file="/home/sebastiano/.local/share/sdep/once" -date="" - -[ -n "$1" ] && date=$(date -d "$1" +%Y-%m-%d) - -[ -n "$date" ] && printf "$date " - -read text - -if [ -n "$text" ]; then - printf "${date}\t${text}\n" >> "$file" -else - echo "Event not saved" -fi -- cgit v1.3