浏览代码

Don't sync if upgrading inadyn repo

Bob Mottram 7 年前
父节点
当前提交
45e1e83e63
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      src/freedombone-utils-web

+ 4
- 4
src/freedombone-utils-web 查看文件

@@ -491,12 +491,12 @@ function install_dynamicdns {
491 491
         if [ -d "$INSTALL_DIR/inadyn" ]; then
492 492
             rm -rf "$INSTALL_DIR/inadyn"
493 493
         fi
494
+    else
495
+        # update to the next commit
496
+        function_check set_repo_commit
497
+        set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO"
494 498
     fi
495 499
 
496
-    # update to the next commit
497
-    function_check set_repo_commit
498
-    set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO"
499
-
500 500
     # Here we compile from source because the current package
501 501
     # doesn't support https, which could result in passwords
502 502
     # being leaked