fix: Also symlink files starting with .
This commit is contained in:
parent
a4c52e8f8d
commit
2d6275f465
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user