mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 8907130fa23dd551ad8d64fe5e09b6e0cb3173a6
parent 8a078c836a9d782fdffb03b38c2be339d8dab548
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 12 Jan 2022 09:09:54 +0100

format

Diffstat:
backup_canary | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/backup_canary b/backup_canary @@ -2,7 +2,8 @@ FOLDER="${1:-$HOME}" FILE="$FOLDER/.backup_canary" -DATE="$(date)" +STAMP="$(date +%s)" +DATE="$(LC_ALL=C date)" HOSTNAME="$(hostname)" -echo "$HOSTNAME:$FOLDER $DATE" > "$FILE" +echo "$HOSTNAME:$FOLDER $STAMP $DATE" > "$FILE"