Absolute paths
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
# Source and destination directories
|
||||
SOURCE_DIR="../../assets/copy_stuff/"
|
||||
DEST_DIR="$HOME"
|
||||
SOURCE_DIR="/home/henrov/Repos/nixos/henrovnix_ok/assets/copy_stuff/"
|
||||
DEST_DIR="/home/henrov/"
|
||||
# Check if source directory exists
|
||||
if [ ! -d "$SOURCE_DIR" ]; then
|
||||
echo "Error: Source directory $SOURCE_DIR does not exist."
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
set -euo pipefail
|
||||
|
||||
#creating a timestamp-file to see whether this script ran
|
||||
TIMESTAMP_FILE="$HOME/nixos_conf/nixos_timestamp.txt"
|
||||
TIMESTAMP_FILE="/home/henrov/nixos_conf/nixos_timestamp.txt"
|
||||
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
||||
echo "File $TIMESTAMP_FILE created"
|
||||
|
||||
#cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config)
|
||||
find ~/.config -name "*.backup" -delete
|
||||
echo "~/.config/*.backup files deleted"
|
||||
find /home/henrov/.config -name "*.backup" -delete
|
||||
echo "/home/henrov/.config/*.backup files deleted"
|
||||
|
||||
#copying stuff from assets/copy_stuff to ~
|
||||
echo "Now in path $(pwd)"
|
||||
|
||||
Reference in New Issue
Block a user