瀏覽代碼

chown ~/.jriver as USER

bryan 1 周之前
父節點
當前提交
1d41d6377f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      installJRMC

+ 1 - 0
installJRMC

@@ -1551,6 +1551,7 @@ disable_btrfs_cow() {
   debug "${FUNCNAME[0]}()"
   debug "${FUNCNAME[0]}()"
   local mc_user_path="$HOME/.jriver"
   local mc_user_path="$HOME/.jriver"
   [[ -d "$mc_user_path" ]] || execute mkdir -p "$mc_user_path"
   [[ -d "$mc_user_path" ]] || execute mkdir -p "$mc_user_path"
+  [[ -d "$mc_user_path" ]] && execute sudo chown -R "$USER:$USER" "$mc_user_path"
 
 
   # Disable btrfs CoW
   # Disable btrfs CoW
   if [[ $(stat -f -c %T "$mc_user_path") == "btrfs" ]]; then
   if [[ $(stat -f -c %T "$mc_user_path") == "btrfs" ]]; then