File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 96
96
# This points the headless->electron launcher to our Electron
97
97
export KUI_ELECTRON_HOME=" ${KUI_ELECTRON_HOME-$NODE } "
98
98
99
- if [ -d " $HEADLESS " /../../store ]; then
100
- # development builds
101
- export GUIDEBOOK_STORE=" $HEADLESS " /../../store
102
- else
103
- # otherwise, we can't find a local mirror, so pull directly from
104
- # git (network transfers!)
105
- export GUIDEBOOK_STORE=git
99
+ if [ -z " $GUIDEBOOK_STORE " ]; then
100
+ if [ -d " $HEADLESS " /../../store ]; then
101
+ # development builds
102
+ export GUIDEBOOK_STORE=" $HEADLESS " /../../store
103
+ else
104
+ # otherwise, we can't find a local mirror, so pull directly from
105
+ # git (network transfers!)
106
+ export GUIDEBOOK_STORE=git
107
+ fi
106
108
fi
107
109
108
110
# check if the user wants us to run the graphical version (currently
109
111
# indicated by the -u option)
110
112
do_cli=1
111
- while getopts " u " opt
113
+ while getopts " us: " opt
112
114
do
113
115
case $opt in
114
116
(u) do_cli=0; shift ; continue ;;
117
+ (s) GUIDEBOOK_STORE=$OPTARG ; shift ; shift ; continue ;;
115
118
esac
116
119
done
117
120
You can’t perform that action at this time.
0 commit comments