|
|
@@ -31,8 +31,8 @@ manage_files() { |
|
|
|
# Check if the file already exists in folder_b |
|
|
|
if [[ ! -e "$destination" ]]; then |
|
|
|
# Create a symbolic link in folder_b with absolute paths |
|
|
|
ln -s "$file" "$destination" |
|
|
|
echo "Linked '$file' to '$destination'" |
|
|
|
ln -s "../../node_modules/$1/$filename" "$destination" |
|
|
|
echo "Linked '../../node_modules/$1/$filename' to '$destination'" |
|
|
|
else |
|
|
|
echo "File '$destination' already exists, skipping..." |
|
|
|
fi |
|
|
@@ -64,8 +64,8 @@ manage_files() { |
|
|
|
|
|
|
|
# Example of calling the function on multiple folder pairs |
|
|
|
|
|
|
|
manage_files "./chess-server-lib/common/models" "./cihsr-server/cihsr/models" |
|
|
|
manage_files "./chess-server-lib/common/lib/vmodel" "./cihsr-server/cihsr/lib/vmodel" |
|
|
|
manage_files "chess-server-lib/common/models" "cihsr-server/cihsr/models" |
|
|
|
manage_files "chess-server-lib/common/lib/vmodel" "cihsr-server/cihsr/lib/vmodel" |
|
|
|
|
|
|
|
rm "./cihsr-server/cihsr/models/labrtfresult.js" |
|
|
|
rm "./cihsr-server/cihsr/models/dataimport.js" |
|
|
@@ -78,3 +78,4 @@ rm "./cihsr-server/cihsr/models/journalgroup.js" |
|
|
|
rm "./cihsr-server/cihsr/models/sageopbill.js" |
|
|
|
rm "./cihsr-server/cihsr/models/elixirlaborder.js" |
|
|
|
rm "./cihsr-server/cihsr/models/pacsorderitem.js" |
|
|
|
|