16 lines
387 B
Bash
Executable File
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"
|