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'; |
Achilles Rasquinha | 2ec5b5e | 2018-05-24 04:46:12 -0500 | [diff] [blame] | 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 | ) |