瀏覽代碼

New generic install method

bryan 2 年之前
父節點
當前提交
02e0e4a021
共有 1 個文件被更改,包括 6 次插入5 次删除
  1. 6 5
      installJRMC

+ 6 - 5
installJRMC

@@ -875,16 +875,17 @@ installMCGENERIC() {
     #raw_files=("$(find etc/ usr/ -mindepth 1 -type f)")
     debug "raw_files=(${raw_files[*]})"
     # Output to log file
-    for f in "${raw_files[@]}"; do
-        echo "/$f"
-        echo "/$f" >> "$SCRIPTDIR/.uninstall"
-    done
+    echo "${raw_files[@]/^.\//\/}" >> "$SCRIPTDIR/.uninstall"
+    # for f in "${raw_files[@]}"; do
+    #     echo "/${f"
+    #     echo "/$f" >> "$SCRIPTDIR/.uninstall"
+    # done
     # Manually install files
     for f in "${raw_files[@]}"; do
         execute sudo cp -a "$f" "/"
     done
     popd &>/dev/null || return
-    execute rm -rf "$extract_dir"
+    debug || execute rm -rf "$extract_dir"
     return 0
 }