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

18 lines
483 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Create a file with the current timestamp, overwriting any existing file
TIMESTAMP_FILE="$HOME/timestamp.txt"
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
# Example of how to execute a script
# Path to the script to execute
#COPY_SCRIPT="./assets/scripts/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"