I am trying to link files in a while loop for my script but just the simple linking code itself creates a broken link.
The directory structure is this:
main/working/script.sh
main/working/dir
main/shared/default/some_files
My script has this code:
ln -s ../shared/default/* dir
This creates broken link. I can make the link not broken if I go inside the directory of main/working/dir and use ln -s ../../shared/default/* .