Skip to content

Commit b21cc96

Browse files
committed
install svn if not installed yet during deployment
1 parent 2182f25 commit b21cc96

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/deploy-wp-plugin.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ elif [ "$PLUGINVERSION" = "$READMEVERSION" ]; then
5757
echo "Versions match in readme.txt and $MAINFILE. Let's proceed..."
5858
fi
5959

60+
echo
61+
echo "Install svn if not installed yet ..."
62+
# Check if SVN is installed
63+
if ! command -v svn &> /dev/null
64+
then
65+
echo "Subversion (svn) is not installed. Installing..."
66+
sudo apt-get update && sudo apt-get install -y subversion
67+
fi
68+
6069
echo
6170
echo "Creating local copy of SVN repo trunk ..."
6271
svn checkout $SVNURL $RELEASEPATH --depth immediates

0 commit comments

Comments
 (0)