File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ linux_checkout:
184
184
ifndef VERSION
185
185
$(error VERSION environment variable is not defined)
186
186
endif
187
- $(SCRIPT_DIR)/checkout_linux.sh $(VERSION)
187
+ $(SCRIPT_DIR)/checkout_linux.sh $(VERSION) $(LINUX_SRC)
188
188
189
189
190
190
# These targets do the same thing as the `linux` targets, but because they're in
Original file line number Diff line number Diff line change 3
3
set -o errexit
4
4
5
5
VERSION=" $1 "
6
+ LINUX_SRC=" ${2:- linux} "
6
7
7
8
if [ -z " $VERSION " ]; then
8
9
echo " usage: $0 VERSION"
11
12
12
13
function check_version_and_checkout {
13
14
local REF=" $1 "
14
- if git -C linux show-ref " $REF " > /dev/null; then
15
- git -C linux checkout $REF
15
+ if git -C " $LINUX_SRC " show-ref " $REF " > /dev/null; then
16
+ git -C " $LINUX_SRC " checkout $REF
16
17
return 0
17
18
else
18
19
return 1
You can’t perform that action at this time.
0 commit comments