Last laradev fix

This commit is contained in:
Beth Parker 2020-07-29 22:08:29 -05:00
parent a659e2846b
commit 96800f82e9

View file

@ -7,7 +7,7 @@ cd "/sites/{{project}}"
branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"` branches=`git ls-remote {{repo}} | grep -o -P "(?<=refs/heads/).*"`
echo "Branches:<br/>" > /sites/{{project}}/index.php echo "Branches:<br/>" > /sites/{{project}}/index.php
for branch in $branches; do for branch in $branches; do
echo " <a href='$branch/public'>$branch<br/>" >> /sites/{{project}}/index.php echo " <a href='$branch/public/'>$branch<br/>" >> /sites/{{project}}/index.php
#clone new branch if necessary #clone new branch if necessary
if [ ! -d "$branch" ];then if [ ! -d "$branch" ];then
git clone -b $branch {{repo}} "$branch" git clone -b $branch {{repo}} "$branch"