fix: Also symlink files starting with .

This commit is contained in:
Nathan Woodburn 2025-03-28 16:23:44 +11:00
parent a4c52e8f8d
commit 2d6275f465
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -15,8 +15,12 @@ create_symlinks() {
# Create the target directory if it doesn't exist
mkdir -p "$target_dir"
# For each file
for file in "$src_dir"/*; do
# Process all files, including hidden ones
local files=("$src_dir"/* "$src_dir"/.[!.]*)
for file in "${files[@]}"; do
# Skip if the file doesn't exist (can happen if no hidden files)
[ -e "$file" ] || continue
echo "Processing: $file"
# Get the file name
local file_name=$(basename "$file")