From 777810b1b38c95bf71825c895e40e005fb627793 Mon Sep 17 00:00:00 2001 From: Joseph Richardson Date: Wed, 24 Jun 2015 12:17:18 -0400 Subject: [PATCH] Switches symlinks to safer relative ones. Fixes #44 --- templates/scripts/src.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/scripts/src.sh b/templates/scripts/src.sh index 3a04731..0973639 100644 --- a/templates/scripts/src.sh +++ b/templates/scripts/src.sh @@ -3,10 +3,10 @@ source config/site-vars.sh # Plugins echo "Linking working directory pluins" -find src/plugins/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -s $PWD/{} $PWD/htdocs/wp-content/plugins/ \; +find src/plugins/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -sf ../../../{} $PWD/htdocs/wp-content/plugins/ \; # Themes echo "Linking working directory themes" -find src/themes/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -s $PWD/{} $PWD/htdocs/wp-content/themes/ \; +find src/themes/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -sf ../../../{} $PWD/htdocs/wp-content/themes/ \; # Dropins echo "Linking any available drop-ins" -find src/dropins/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -s $PWD/{} $PWD/htdocs/wp-content/ \; +find src/dropins/ -maxdepth 1 -mindepth 1 \( ! -regex '.*/\..*' \) -exec ln -sf ../../../{} $PWD/htdocs/wp-content/ \;