File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
prerequisites/build-functions Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
-
2
1
# shellcheck disable=SC2154
3
-
4
2
replace_wget ()
5
3
{
6
4
# Define a file extension for the download_prerequisites backup
@@ -16,7 +14,7 @@ replace_wget()
16
14
sed -i${backup_extension} -e ' 2 a\' $' \n ' " . ${OPENCOARRAYS_SRC_DIR} /prerequisites/build-functions/ftp_url.sh" $' \n ' " ${download_prereqs_file} "
17
15
fi
18
16
19
- arg_string=" ${gcc_prereqs_fetch_args[@]:- } "
17
+ arg_string=" ${gcc_prereqs_fetch_args[@]:- } "
20
18
21
19
info " Using the following command to replace wget in the GCC download_prerequisites file:"
22
20
info " sed -i${backup_extension} s/\" ${wget_command} \" /\" ${gcc_prereqs_fetch} ${arg_string} \" / \" ${download_prereqs_file} \" "
@@ -39,7 +37,7 @@ edit_GCC_download_prereqs_file_if_necessary()
39
37
# Check for wget format used before GCC 7
40
38
if [[ ! -z " ${wget_command} " ]]; then
41
39
# Check whether wget is available on this system
42
- if ! type wget & > /dev/null; then
40
+ if ! type wget & > /dev/null; then
43
41
replace_wget
44
42
fi
45
43
fi
You can’t perform that action at this time.
0 commit comments