From adcda1f26555e662f6ae703b1979c8290774f2ec Mon Sep 17 00:00:00 2001 From: Thomas Metois Date: Thu, 28 Jul 2016 14:29:43 +0200 Subject: [PATCH] Script build ressources > remove broken symlinks --- scripts/link_modules_resources.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/link_modules_resources.sh b/scripts/link_modules_resources.sh index 02ed979..5c3b9ea 100755 --- a/scripts/link_modules_resources.sh +++ b/scripts/link_modules_resources.sh @@ -3,17 +3,25 @@ # Ensure folders are existing if [ ! -d public/js ]; then mkdir public/js +else + find -L public/js -type l -exec rm {} \; fi if [ ! -d public/css ]; then mkdir public/css +else + find -L public/css -type l -exec rm {} \; fi if [ ! -d public/views ]; then mkdir -p public/views/dialogs +else + find -L public/views/dialogs -type l -exec rm {} \; fi if [ ! -d public/img ]; then mkdir public/img +else + find -L public/img -type l -exec rm {} \; fi # Link modules resources