new wallpaperthingie
This commit is contained in:
+1
-15
@@ -791,21 +791,7 @@ let
|
|||||||
|
|
||||||
# Define the script in the let block
|
# Define the script in the let block
|
||||||
copy_wallpapers_script = ''
|
copy_wallpapers_script = ''
|
||||||
#!${pkgs.bash}/bin/bash
|
Echo "hoi"
|
||||||
set -euo pipefail
|
|
||||||
# Source and destination directories
|
|
||||||
SOURCE_DIR="${source_path}"
|
|
||||||
DEST_DIR="${destination_path}"
|
|
||||||
# Check if source directory exists
|
|
||||||
if [ ! -d "$SOURCE_DIR" ]; then
|
|
||||||
echo "Error: Source directory $SOURCE_DIR does not exist."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# Create destination directory if it doesn't exist
|
|
||||||
mkdir -p "$DEST_DIR"
|
|
||||||
# Use rsync to copy files, overwriting symlinks and existing files
|
|
||||||
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
|
|
||||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Print the script contents during the build
|
# Print the script contents during the build
|
||||||
|
|||||||
@@ -9,21 +9,7 @@ let
|
|||||||
|
|
||||||
# Define the script in the let block
|
# Define the script in the let block
|
||||||
copy_wallpapers_script = ''
|
copy_wallpapers_script = ''
|
||||||
#!${pkgs.bash}/bin/bash
|
Echo "hoi"
|
||||||
set -euo pipefail
|
|
||||||
# Source and destination directories
|
|
||||||
SOURCE_DIR="${source_path}"
|
|
||||||
DEST_DIR="${destination_path}"
|
|
||||||
# Check if source directory exists
|
|
||||||
if [ ! -d "$SOURCE_DIR" ]; then
|
|
||||||
echo "Error: Source directory $SOURCE_DIR does not exist."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# Create destination directory if it doesn't exist
|
|
||||||
mkdir -p "$DEST_DIR"
|
|
||||||
# Use rsync to copy files, overwriting symlinks and existing files
|
|
||||||
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
|
|
||||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Print the script contents during the build
|
# Print the script contents during the build
|
||||||
|
|||||||
Reference in New Issue
Block a user