Anand Doshi | 6677fd5 | 2016-04-07 18:19:56 +0530 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | cd ~/ | ||||
4 | curl -I https://github.com/frappe/frappe/tree/$TRAVIS_BRANCH | head -n 1 | cut -d $' ' -f2 | ( | ||||
5 | read response; | ||||
6 | [ $response == '200' ] && branch=$TRAVIS_BRANCH || branch='develop'; | ||||
7 | bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch $branch | ||||
8 | ) |