Files
nixos/henrovnix_ok/assets/scripts/end_script.sh
T
2026-03-03 22:52:16 +01:00

16 lines
387 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Example of how to execute a script
# Path to the script to execute
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"
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"