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/ \;