aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-24 09:18:23 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-24 09:18:23 -0200
commitde1a6dcb48d504a270aa89a9f8afa9922cea0d70 (patch)
tree331bb53cc32f2f700971a6c486dd0773f608a535
parent59b7f114e4db75aa3d134b8d2d8a3a36271f37d7 (diff)
downloadpuppet-bootstrap-de1a6dcb48d504a270aa89a9f8afa9922cea0d70.tar.gz
puppet-bootstrap-de1a6dcb48d504a270aa89a9f8afa9922cea0d70.tar.bz2
Exclude site_ modules at bin/symlinks
-rwxr-xr-xbin/symlinks12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/symlinks b/bin/symlinks
index 0a221c4..c331261 100755
--- a/bin/symlinks
+++ b/bin/symlinks
@@ -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