source with source not dot
Signed-off-by: Michael Woolweaver <michael@woolweaver.bid>
This commit is contained in:
@@ -42,7 +42,7 @@ else
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
. /etc/pihole/versions
|
||||
source /etc/pihole/versions
|
||||
|
||||
# Read the value of an FTL config key. The value is printed to stdout.
|
||||
get_ftl_conf_value() {
|
||||
|
||||
@@ -22,10 +22,10 @@ domain=""
|
||||
|
||||
# Source color table
|
||||
colfile="/opt/pihole/COL_TABLE"
|
||||
. "${colfile}"
|
||||
source "${colfile}"
|
||||
|
||||
# Source api functions
|
||||
. "${PI_HOLE_INSTALL_DIR}/api.sh"
|
||||
source "${PI_HOLE_INSTALL_DIR}/api.sh"
|
||||
|
||||
Help() {
|
||||
echo "Usage: pihole -q [option] <domain>
|
||||
|
||||
@@ -40,7 +40,7 @@ function get_remote_hash() {
|
||||
|
||||
# Source the utils file for addOrEditKeyValPair()
|
||||
# shellcheck disable=SC1091
|
||||
. /opt/pihole/utils.sh
|
||||
source /opt/pihole/utils.sh
|
||||
|
||||
# Remove the below three legacy files if they exist
|
||||
rm -f "/etc/pihole/GitHubVersions"
|
||||
|
||||
@@ -17,12 +17,12 @@ cachedVersions="/etc/pihole/versions"
|
||||
|
||||
if [ -f ${cachedVersions} ]; then
|
||||
# shellcheck disable=SC1090
|
||||
. "$cachedVersions"
|
||||
source "$cachedVersions"
|
||||
else
|
||||
echo "Could not find /etc/pihole/versions. Running update now."
|
||||
pihole updatechecker
|
||||
# shellcheck disable=SC1090
|
||||
. "$cachedVersions"
|
||||
source "$cachedVersions"
|
||||
fi
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user