@@ -220,35 +220,35 @@ if [ -f "$config_file" ]; then
220
220
config_channel=" $( jq -r ' select(.channel!=null) | .channel' " $config_file " ) "
221
221
config_tools_source=" $( jq -r ' select(.toolsSource!=null) | .toolsSource' " $config_file " ) "
222
222
else
223
- _error " $config_file contains invalid JSON."
223
+ __error " $config_file contains invalid JSON."
224
224
exit 1
225
225
fi
226
226
elif __machine_has python ; then
227
227
if python -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'))" > /dev/null ; then
228
228
config_channel=" $( python -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'));print(obj['channel'] if 'channel' in obj else '')" ) "
229
229
config_tools_source=" $( python -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'));print(obj['toolsSource'] if 'toolsSource' in obj else '')" ) "
230
230
else
231
- _error " $config_file contains invalid JSON."
231
+ __error " $config_file contains invalid JSON."
232
232
exit 1
233
233
fi
234
234
elif __machine_has python3 ; then
235
235
if python3 -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'))" > /dev/null ; then
236
236
config_channel=" $( python3 -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'));print(obj['channel'] if 'channel' in obj else '')" ) "
237
237
config_tools_source=" $( python3 -c " import json,codecs;obj=json.load(codecs.open('$config_file ', 'r', 'utf-8-sig'));print(obj['toolsSource'] if 'toolsSource' in obj else '')" ) "
238
238
else
239
- _error " $config_file contains invalid JSON."
239
+ __error " $config_file contains invalid JSON."
240
240
exit 1
241
241
fi
242
242
else
243
- _error ' Missing required command: jq or python. Could not parse the JSON file.'
243
+ __error ' Missing required command: jq or python. Could not parse the JSON file.'
244
244
exit 1
245
245
fi
246
246
247
247
[ ! -z " ${config_channel:- } " ] && channel=" $config_channel "
248
248
[ ! -z " ${config_tools_source:- } " ] && tools_source=" $config_tools_source "
249
249
fi
250
250
251
- [ -z " $channel " ] && channel=' dev '
251
+ [ -z " $channel " ] && channel=' master '
252
252
[ -z " $tools_source " ] && tools_source=' https://aspnetcore.blob.core.windows.net/buildtools'
253
253
254
254
get_korebuild
0 commit comments