From b90ba4d00bddb15fe85abaf2265fdd54bfd168f0 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Wed, 4 Mar 2026 14:14:53 +0100 Subject: [PATCH] New service for end-script.sh --- henrovnix_ok/assets/scripts/end_script.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/henrovnix_ok/assets/scripts/end_script.sh b/henrovnix_ok/assets/scripts/end_script.sh index 60cad0684..471f26ba4 100755 --- a/henrovnix_ok/assets/scripts/end_script.sh +++ b/henrovnix_ok/assets/scripts/end_script.sh @@ -1,8 +1,14 @@ #!/usr/bin/env bash set -euo pipefail +#creating a timestamp-file to see whether this script ran +TIMESTAMP_FILE="$HOME/nixos_conf/nixos_timestamp.txt" +date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE" +echo "File created" + #cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config) find ~/.config -name "*.backup" -delete +echo "Files deleted" #copying stuff from assets/copy_stuff to ~ COPY_SCRIPT="./copy_stuff.sh" @@ -11,7 +17,3 @@ if [ ! -f "$COPY_SCRIPT" ]; then exit 1 fi "$COPY_SCRIPT" - -#creating a timestamp-file to see whether this script ran -TIMESTAMP_FILE="$HOME/nixos_conf/nixos_timestamp.txt" -date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"