Fix all Shellcheck SC1090 violations.

pull/143/head
Ben Peachey 3 years ago committed by Joseph Werle
parent ca20c53aff
commit dd4bfbd678

@ -2,6 +2,7 @@
# Include config rc file if found
CONFIG_FILE="$HOME/.bpkgrc"
# shellcheck disable=SC1090
[[ -f "$CONFIG_FILE" ]] && source "$CONFIG_FILE"
## set defaults

@ -6,7 +6,8 @@ if ! type -f bpkg-utils &>/dev/null; then
echo "error: bpkg-utils not found, aborting"
exit 1
else
source $(which bpkg-utils)
# shellcheck source=../utils/utils.sh
source "$(which bpkg-utils)"
fi
bpkg_initrc

@ -6,7 +6,8 @@ if ! type -f bpkg-utils &>/dev/null; then
echo "error: bpkg-utils not found, aborting"
exit 1
else
source $(which bpkg-utils)
# shellcheck source=../utils/utils.sh
source "$(which bpkg-utils)"
fi
bpkg_initrc

@ -6,7 +6,8 @@ if ! type -f bpkg-utils &>/dev/null; then
echo "error: bpkg-utils not found, aborting"
exit 1
else
source $(which bpkg-utils)
# shellcheck source=../utils/utils.sh
source "$(which bpkg-utils)"
fi
bpkg_initrc

@ -5,8 +5,10 @@
## Init local config and set environmental defaults
bpkg_initrc() {
local global_config=${BPKG_GLOBAL_CONFIG:-"/etc/bpkgrc"}
# shellcheck disable=SC1090
[ -f "$global_config" ] && source "$global_config"
local config=${BPKG_CONFIG:-"$HOME/.bpkgrc"}
# shellcheck disable=SC1090
[ -f "$config" ] && source "$config"
## set defaults
if [ ${#BPKG_REMOTES[@]} -eq 0 ]; then

Loading…
Cancel
Save