Fix all Shellcheck SC2206 violations.

pull/143/head
Ben Peachey 3 years ago committed by Joseph Werle
parent 4c6a99ad3b
commit 7494024a57

@ -236,6 +236,7 @@ bpkg_install_from_remote () {
{
OLDIFS="${IFS}"
IFS="@"
# shellcheck disable=SC2206
pkg_parts=(${pkg})
IFS="${OLDIFS}"
}
@ -255,6 +256,7 @@ bpkg_install_from_remote () {
{
OLDIFS="${IFS}"
IFS='/'
# shellcheck disable=SC2206
pkg_parts=(${pkg})
IFS="${OLDIFS}"
}
@ -281,6 +283,7 @@ bpkg_install_from_remote () {
info 'Using OAUTH basic with content requests'
OLDIFS="${IFS}"
IFS="'|'"
# shellcheck disable=SC2206
local remote_parts=($remote)
IFS="${OLDIFS}"
local token=${remote_parts[1]}
@ -365,6 +368,7 @@ bpkg_install_from_remote () {
## create array by splitting on newline
OLDIFS="${IFS}"
IFS=$'\n'
# shellcheck disable=SC2206
scripts=(${scripts[@]})
IFS="${OLDIFS}"
}
@ -376,6 +380,7 @@ bpkg_install_from_remote () {
## create array by splitting on newline
OLDIFS="${IFS}"
IFS=$'\n'
# shellcheck disable=SC2206
files=(${files[@]})
IFS="${OLDIFS}"
}

@ -102,6 +102,7 @@ bpkg_select_remote () {
if [ "${remote:0:10}" == "raw-oauth|" ]; then
OLDIFS="${IFS}"
IFS="|"
# shellcheck disable=SC2206
local remote_parts=($remote)
IFS="${OLDIFS}"
BPKG_OAUTH_TOKEN=${remote_parts[1]}

Loading…
Cancel
Save