瀏覽代碼

fix unrecognized rsync flag on osx

kylo252 3 年之前
父節點
當前提交
f6c706ac0c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils/installer/install.sh

+ 2 - 2
utils/installer/install.sh

@@ -207,8 +207,8 @@ function backup_old_config() {
     # that require an existing directory
     mkdir -p "$dir" "$dir.bak"
     if command -v rsync &>/dev/null; then
-      rsync --archive -hh --partial --info=stats1 --info=progress2 \
-        --modify-window=1 "$dir" "$dir.bak"
+      rsync --archive -hh --partial --progress \
+        --modify-window=1 "$dir"/ "$dir.bak"
     else
       cp -R "$dir/*" "$dir.bak/."
     fi