File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ CR=$(tput sgr0) # Color Reset
13
13
14
14
export KIRI_INSTALL_PATH
15
15
export KIRI_HOME
16
+ export KIRI_BRANCH
16
17
17
18
install_kiri ()
18
19
{
@@ -25,6 +26,7 @@ install_kiri()
25
26
if which git & > /dev/null; then
26
27
git clone --recurse-submodules -j8 https://github.com/leoheck/kiri.git " ${KIRI_HOME} /kiri"
27
28
cd " ${KIRI_HOME} /kiri/" || exit
29
+ git checkout ${KIRI_BRANCH}
28
30
else
29
31
echo " Git is missing, please use install_dependencies script"
30
32
exit 1
@@ -97,12 +99,18 @@ show_initial_message()
97
99
KIRI_HOME=" ${HOME} /.local/share"
98
100
fi
99
101
102
+ if [[ -n " ${KIRI_BRANCH} " ]]; then
103
+ KIRI_BRANCH=" main"
104
+ fi
105
+
100
106
read -r -d ' ' ENV_SETUP_NOTE << -EOM
101
107
${CI}${CB} Installing KiRI${CR}
102
108
103
109
Installation path ${KIRI_HOME}
104
110
Change it using KIRI_INSTALL_PATH environment variable
105
111
112
+ KIRI_BRANCH variable can be used to test other branches of Kiri
113
+
106
114
Hit ENTER to continue or Ctrl+C to leave.
107
115
EOM
108
116
You can’t perform that action at this time.
0 commit comments