Skip to content

Commit

Permalink
Switches symlinks to safer relative ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
EHLOVader committed Jun 24, 2015
1 parent 16e2da7 commit 347ec3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/scripts/src.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/ \;

0 comments on commit 347ec3a

Please sign in to comment.