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