Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/ \;