From 2e458297c8ce3556ff17926ac578f1f9445c4b2e Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Wed, 4 Mar 2026 08:52:16 +0100 Subject: [PATCH] Adapted end script --- henrovnix_ok/assets/scripts/end_script.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/henrovnix_ok/assets/scripts/end_script.sh b/henrovnix_ok/assets/scripts/end_script.sh index c2ec0db62..60cad0684 100755 --- a/henrovnix_ok/assets/scripts/end_script.sh +++ b/henrovnix_ok/assets/scripts/end_script.sh @@ -1,15 +1,17 @@ #!/usr/bin/env bash set -euo pipefail -# Example of how to execute a script -# Path to the script to execute + +#cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config) +find ~/.config -name "*.backup" -delete + +#copying stuff from assets/copy_stuff to ~ COPY_SCRIPT="./copy_stuff.sh" -# Check if the script exists if [ ! -f "$COPY_SCRIPT" ]; then echo "Error: Script $COPY_SCRIPT does not exist." exit 1 fi -# Execute the script "$COPY_SCRIPT" -TIMESTAMP_FILE="$HOME/timestamp.txt" +#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"