Rebuilding
This commit is contained in:
+290
-290
File diff suppressed because it is too large
Load Diff
@@ -2,17 +2,17 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
#creating a timestamp-file to see whether this script ran
|
#creating a timestamp-file to see whether this script ran
|
||||||
TIMESTAMP_FILE="/home/henrov/nixos_conf/nixos_timestamp.txt"
|
TIMESTAMP_FILE="~/nixos_conf/nixos_timestamp.txt"
|
||||||
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
date +"%Y-%m-%d %H:%M:%S" > "$TIMESTAMP_FILE"
|
||||||
echo "File $TIMESTAMP_FILE created"
|
echo "File $TIMESTAMP_FILE created"
|
||||||
|
|
||||||
#cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config)
|
#cleaning up .backup files (do not worry, they exist safely in ./assets/copy_stuff/.config)
|
||||||
find /home/henrov/.config -name "*.backup" -delete
|
find ~/.config -name "*.backup" -delete
|
||||||
echo "/home/henrov/.config/*.backup files deleted"
|
echo "~/.config/*.backup files deleted"
|
||||||
|
|
||||||
#copying stuff from assets/copy_stuff to ~
|
#copying stuff from assets/copy_stuff to ~
|
||||||
echo "Now in path $(pwd)"
|
echo "Now in path $(pwd)"
|
||||||
COPY_SCRIPT="/home/henrov/Repos/nixos/henrovnix_ok/assets/scripts/copy_stuff.sh"
|
COPY_SCRIPT="/assets/scripts/copy_stuff.sh"
|
||||||
if [ ! -f "$COPY_SCRIPT" ]; then
|
if [ ! -f "$COPY_SCRIPT" ]; then
|
||||||
echo "Error: Script $COPY_SCRIPT does not exist."
|
echo "Error: Script $COPY_SCRIPT does not exist."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user