[fix] bench init using correct frappe branch

This commit is contained in:
Anand Doshi
2016-04-07 18:19:56 +05:30
parent c6a695d0f3
commit 6677fd58ef
4 changed files with 9 additions and 34 deletions

8
travis/bench_init.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
cd ~/
curl -I https://github.com/frappe/frappe/tree/$TRAVIS_BRANCH | head -n 1 | cut -d $' ' -f2 | (
read response;
[ $response == '200' ] && branch=$TRAVIS_BRANCH || branch='develop';
bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch $branch
)