]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Exclude site_ modules at bin/symlinks
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Oct 2017 11:18:23 +0000 (09:18 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 24 Oct 2017 11:18:23 +0000 (09:18 -0200)
bin/symlinks

index 0a221c45c7fe2e089824f5faecbf14428b9f3453..c331261ff981ea244090022223cbcc51fef51968 100755 (executable)
@@ -17,8 +17,14 @@ fi
 
 # Add module symlinks using absolute folders
 for module in `ls $MODULES`; do
-  if [ "$module" != "bootstrap" ]; then
-    path="`cd $MODULES/$module && pwd`"
-    ( cd modules &> /dev/null && ln -sf $path )
+  if [ "$module" == "bootstrap" ]; then
+    continue
   fi
+
+  if echo "$module" | grep -q "^site_"; then
+    continue
+  fi
+
+  path="`cd $MODULES/$module && pwd`"
+  ( cd modules &> /dev/null && ln -sf $path )
 done