From 70fb733fea71858494f441d429513d6a77674b21 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Mon, 17 Jul 2017 10:53:49 +0100 Subject: [PATCH] col_table does not exist yet, will break the install if pushed as hotfix. Not sure why these additional "'s were put in, they break the update command, too. Signed-off-by: Adam Warner --- advanced/Scripts/update.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh index e3a7f8fd..2ef136a9 100755 --- a/advanced/Scripts/update.sh +++ b/advanced/Scripts/update.sh @@ -26,8 +26,6 @@ PH_TEST=true #shellcheck disable=SC1090 source "${PI_HOLE_FILES_DIR}/automated install/basic-install.sh" -source "/opt/pihole/COL_TABLE" - # is_repo() sourced from basic-install.sh # make_repo() sourced from basic-install.sh # update_repo() source from basic-install.sh @@ -43,7 +41,7 @@ GitCheckUpdateAvail() { # @ alone is a shortcut for HEAD. Older versions of git # need @{0} - LOCAL="$("git rev-parse @{0}")" + LOCAL="$(git rev-parse @{0})" # The suffix @{upstream} to a branchname # (short form @{u}) refers @@ -52,7 +50,7 @@ GitCheckUpdateAvail() { # (configured with branch..remote and # branch..merge). A missing branchname # defaults to the current one. - REMOTE="$("git rev-parse @{upstream}")" + REMOTE="$(git rev-parse @{upstream})" if [[ ${#LOCAL} == 0 ]]; then echo "::: Error: Local revision could not be obtained, ask Pi-hole support."