From e6683e0f1c60a7cc62242eba17d5ef16ac8ce12c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 12 May 2018 18:56:04 +0100 Subject: [PATCH] Debug --- src/freedombone-utils-web | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index d78bcd91..11442478 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -493,17 +493,19 @@ function install_dynamicdns { if grep -q "inadyn commit" "$COMPLETION_FILE"; then sed -i '/inadyn commit/d' "$COMPLETION_FILE" fi - fi - - CURR_INADYN_COMMIT=$(get_completion_param "inadyn commit") - echo "************ 3 $CURR_INADYN_COMMIT $INADYN_COMMIT" - if [[ "${CURR_INADYN_COMMIT}" == "${INADYN_COMMIT}" ]]; then - return + else + CURR_INADYN_COMMIT=$(get_completion_param "inadyn commit") + echo "************ 3 $CURR_INADYN_COMMIT $INADYN_COMMIT" + if [[ "${CURR_INADYN_COMMIT}" == "${INADYN_COMMIT}" ]]; then + return + fi fi echo "************ 4" if [ -f /usr/local/sbin/inadyn ]; then + echo "********* checking $INSTALL_DIR/inadyn" if [ -d "$INSTALL_DIR/inadyn" ]; then + echo "Removing $INSTALL_DIR/inadyn" rm -rf "$INSTALL_DIR/inadyn" fi else