new wallpaperthingie
This commit is contained in:
@@ -22,13 +22,7 @@ in
|
||||
echo "Copying wallpapers..."
|
||||
mkdir -p "${targetDir}"
|
||||
|
||||
# Only copy if empty, so user can manage files later
|
||||
if [ -z "$(ls -A "${targetDir}" 2>/dev/null)" ]; then
|
||||
cp -r ${sourceDir}/* "${targetDir}/"
|
||||
echo "Wallpapers copied."
|
||||
else
|
||||
echo "Directory not empty, skipping."
|
||||
fi
|
||||
rsync -av --no-group --no-owner "$sourceDir/" "${targetDir}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user