Fix more Shellcheck SC2034 violations.

pull/143/head
Ben Peachey 3 years ago committed by Joseph Werle
parent 447269a7ff
commit af4d935075

@ -7,7 +7,7 @@ if ! type -f bpkg-utils &>/dev/null; then
exit 1
else
# shellcheck disable=SC2230
# shellcheck source=../utils/utils.sh
# shellcheck source=lib/utils/utils.sh
source "$(which bpkg-utils)"
fi

@ -7,7 +7,7 @@ if ! type -f bpkg-utils &>/dev/null; then
exit 1
else
# shellcheck disable=SC2230
# shellcheck source=../utils/utils.sh
# shellcheck source=lib/utils/utils.sh
source "$(which bpkg-utils)"
fi
@ -41,7 +41,6 @@ show_package () {
local desc=$2
local show_readme=$3
local show_sources=$4
local host=$BPKG_REMOTE_HOST
local remote=$BPKG_REMOTE
local git_remote=$BPKG_GIT_REMOTE
local auth=""
@ -65,7 +64,7 @@ show_package () {
fi
readme=$(eval "curl $auth -sL '$uri/README.md?$(date +%s)'")
local author description install_sh pkg_desc readme_len sources version
local author install_sh pkg_desc readme_len sources version
readme_len=$(echo "$readme" | wc -l | tr -d ' ')
@ -73,7 +72,6 @@ show_package () {
author=$(echo "$json" | bpkg-json -b | grep '"author"' | sed 's/.*author"\]\s*//' | tr -d '\t' | tr -d '"')
pkg_desc=$(echo "$json" | bpkg-json -b | grep '"description"' | sed 's/.*description"\]\s*//' | tr -d '\t' | tr -d '"')
sources=$(echo "$json" | bpkg-json -b | grep '"scripts"' | cut -f 2 | tr -d '"' )
description=$(echo "$json" | bpkg-json -b | grep '"description"')
install_sh=$(echo "$json" | bpkg-json -b | grep '"install"' | sed 's/.*install"\]\s*//' | tr -d '\t' | tr -d '"')
if [ "$pkg_desc" != "" ]; then

@ -7,7 +7,7 @@ if ! type -f bpkg-utils &>/dev/null; then
exit 1
else
# shellcheck disable=SC2230
# shellcheck source=../utils/utils.sh
# shellcheck source=lib/utils/utils.sh
source "$(which bpkg-utils)"
fi
@ -23,7 +23,6 @@ bpkg_update_remote() {
local remote=$1
local git_remote=$2
local wiki_url=""
local wiki=""
bpkg_select_remote "$remote" "$git_remote"
@ -68,6 +67,7 @@ bpkg_update () {
esac
done
# shellcheck disable=SC2034
local let i=0
for remote in "${BPKG_REMOTES[@]}"; do
local git_remote=${BPKG_GIT_REMOTES[$i]}

Loading…
Cancel
Save