From e76b410b860cefe5f0a3f6c744f317899186e96b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 21 Jun 2022 09:07:11 +0200 Subject: Changed folder for scripts (see README.md diff) --- scripts/sdep-add | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts/sdep-add') diff --git a/scripts/sdep-add b/scripts/sdep-add index b5f1a8c..bb0b2c8 100755 --- a/scripts/sdep-add +++ b/scripts/sdep-add @@ -1,6 +1,6 @@ #!/bin/sh -# Adds a line to $sdepdata/once. It is possible to specify a date, which will be +# Adds a line to SDEPDATA/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. @@ -8,9 +8,7 @@ # Usage: sdep-add [date] # Example: sdep-add "next monday" -sdepdata="${XDG_DATA_HOME:-$HOME/.local/}/sdep" - -file="$sdepdata/once" +file="SDEPDATA/once" date="" [ -n "$1" ] && date=$(date -d "$1" +%Y-%m-%d) -- cgit v1.3