File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ show_help() {
38
38
info " -s skip actual build steps (Default off)"
39
39
info " -r only build release (Default off)"
40
40
info " -t build tests (Default off)"
41
+ info " -y say yes"
41
42
42
43
header " Workflow Options - only one of the below at a time"
43
44
info " -d Developer Workflow: (Default) Building the current branch Qt+Chromium"
@@ -90,6 +91,9 @@ BUILD_RELEASE=false
90
91
# t) Build tests
91
92
BUILD_TESTS=false
92
93
94
+ # y) Say yes
95
+ SAY_YES=false
96
+
93
97
# 4) Root work directory (WORK_DIR)
94
98
if [ " $OSTYPE " = " msys" ] ; then
95
99
WORK_DIR=" /c/Code"
102
106
# Process commandline
103
107
OPTIND=1
104
108
105
- while getopts " h?vkxsrtj :w:dupeqcli" opt; do
109
+ while getopts " h?vkxsyrtj :w:dupeqcli" opt; do
106
110
case " $opt " in
107
111
h|\? )
108
112
show_help
@@ -136,6 +140,8 @@ while getopts "h?vkxsrtj:w:dupeqcli" opt; do
136
140
;;
137
141
s) BUILD_SKIP=true
138
142
;;
143
+ y) SAY_YES=true
144
+ ;;
139
145
j) BUILD_JOBS=$OPTARG
140
146
;;
141
147
w) WORK_DIR=$OPTARG
@@ -242,7 +248,12 @@ else
242
248
fi
243
249
244
250
confirm () {
245
- read -r -p " ${1:- Are you sure? [y/N]} " response
251
+ if [ " $SAY_YES " = true ] ; then
252
+ response=" y"
253
+ else
254
+ read -r -p " ${1:- Are you sure? [y/N]} " response
255
+ fi
256
+
246
257
case " $response " in
247
258
[yY][eE][sS]|[yY])
248
259
true
You can’t perform that action at this time.
0 commit comments