Skip to content

Commit 6cd26e9

Browse files
committed
Address additional issues found by shellcheck
1 parent 0b67e4b commit 6cd26e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prerequisites/build-functions/edit_GCC_download_prereqs_file_if_necessary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ replace_wget()
1414
sed -i${backup_extension} -e '2 a\'$'\n'". ${OPENCOARRAYS_SRC_DIR}/prerequisites/build-functions/ftp_url.sh"$'\n' "${download_prereqs_file}"
1515
fi
1616

17-
arg_string="${gcc_prereqs_fetch_args[@]:-}"
17+
arg_string="${gcc_prereqs_fetch_args[*]:-}"
1818

1919
info "Using the following command to replace wget in the GCC download_prerequisites file:"
2020
info "sed -i${backup_extension} s/\"${wget_command}\"/\"${gcc_prereqs_fetch} ${arg_string} \"/ \"${download_prereqs_file}\""
@@ -31,7 +31,7 @@ edit_GCC_download_prereqs_file_if_necessary()
3131
download_prereqs_file="${PWD}/contrib/download_prerequisites"
3232

3333
# Grab the line with the first occurence of 'wget'
34-
wget_line=`grep wget "${download_prereqs_file}" | head -1` || true
34+
wget_line=$(grep wget "${download_prereqs_file}" | head -1) || true
3535
wget_command="${wget_line%%ftp*}" # grab everything before ftp
3636

3737
# Check for wget format used before GCC 7

0 commit comments

Comments
 (0)