Skip to content

Commit 1707513

Browse files
author
Damian Rouson
committed
Delete trailing white space
1 parent fd83657 commit 1707513

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

prerequisites/build-functions/edit_GCC_download_prereqs_file_if_necessary.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
# shellcheck disable=SC2154
3-
42
replace_wget()
53
{
64
# Define a file extension for the download_prerequisites backup
@@ -16,7 +14,7 @@ replace_wget()
1614
sed -i${backup_extension} -e '2 a\'$'\n'". ${OPENCOARRAYS_SRC_DIR}/prerequisites/build-functions/ftp_url.sh"$'\n' "${download_prereqs_file}"
1715
fi
1816

19-
arg_string="${gcc_prereqs_fetch_args[@]:-} "
17+
arg_string="${gcc_prereqs_fetch_args[@]:-}"
2018

2119
info "Using the following command to replace wget in the GCC download_prerequisites file:"
2220
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()
3937
# Check for wget format used before GCC 7
4038
if [[ ! -z "${wget_command}" ]]; then
4139
# Check whether wget is available on this system
42-
if ! type wget &> /dev/null; then
40+
if ! type wget &> /dev/null; then
4341
replace_wget
4442
fi
4543
fi

0 commit comments

Comments
 (0)