Skip to content

Commit ac399d1

Browse files
authored
fix: codespace branch selection respected (#207)
1 parent 537c014 commit ac399d1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.devcontainer/scripts/init.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!bin/bash
22

3+
echo "Building Devcontainer from branch: "
4+
branch_name=$(git rev-parse --abbrev-ref HEAD)
5+
echo $branch_name
6+
37
set -e
48

59
if [[ -f "/workspaces/beam/frappe-bench/apps/frappe" ]]
@@ -37,11 +41,12 @@ sed -i '/redis/d' ./Procfile
3741
bench new-site dev.localhost --mariadb-root-password 123 --admin-password admin --no-mariadb-socket
3842

3943
bench get-app erpnext --branch version-15
40-
bench get-app https://github.com/agritheory/beam --branch version-15
44+
bench get-app hrms --branch version-15
45+
bench get-app https://github.com/agritheory/beam --branch $branch_name
4146

42-
bench --site dev.localhost install-app erpnext beam
47+
bench --site dev.localhost install-app erpnext hrms beam
4348
bench --site dev.localhost set-config developer_mode 1
4449
bench --site dev.localhost clear-cache
4550
bench use dev.localhost
4651

47-
bench build && bench clear-cache
52+
bench build && bench clear-cache

0 commit comments

Comments
 (0)