Explorar o código

[Bugfix] Fix cp cannot stat error during installation (#1428)

Desmond Chan %!s(int64=3) %!d(string=hai) anos
pai
achega
ca8d855eb0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/installer/install.sh

+ 1 - 1
utils/installer/install.sh

@@ -214,7 +214,7 @@ function backup_old_config() {
       rsync --archive -hh --partial --progress --cvs-exclude \
         --modify-window=1 "$dir"/ "$dir.bak"
     else
-      cp -R "$dir/*" "$dir.bak/."
+      cp -R "$dir/"* "$dir.bak/."
     fi
   done
   echo "Backup operation complete"