From de7341c10c87299d13d742dea6c31a6080ccead2 Mon Sep 17 00:00:00 2001 From: neo Date: Sun, 7 Feb 2021 11:20:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-origin.sh | 6 +++--- install-tsinghua.sh | 6 +++--- install.sh | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/install-origin.sh b/install-origin.sh index 6d3596b..47d0b5d 100755 --- a/install-origin.sh +++ b/install-origin.sh @@ -534,7 +534,7 @@ fi if ! [[ -d "${HOMEBREW_REPOSITORY}" ]]; then execute_sudo "/bin/mkdir" "-p" "${HOMEBREW_REPOSITORY}" fi -execute_sudo "$CHOWN" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" +execute_sudo "$CHOWN" "-R" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" if ! [[ -d "${HOMEBREW_CACHE}" ]]; then if [[ -z "${HOMEBREW_ON_LINUX-}" ]]; then @@ -547,10 +547,10 @@ if exists_but_not_writable "${HOMEBREW_CACHE}"; then execute_sudo "/bin/chmod" "g+rwx" "${HOMEBREW_CACHE}" fi if file_not_owned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHOWN" "$USER" "${HOMEBREW_CACHE}" + execute_sudo "$CHOWN" "-R" "$USER" "${HOMEBREW_CACHE}" fi if file_not_grpowned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHGRP" "$GROUP" "${HOMEBREW_CACHE}" + execute_sudo "$CHGRP" "-R" "$GROUP" "${HOMEBREW_CACHE}" fi if [[ -d "${HOMEBREW_CACHE}" ]]; then execute "$TOUCH" "${HOMEBREW_CACHE}/.cleaned" diff --git a/install-tsinghua.sh b/install-tsinghua.sh index 878fd75..228c0de 100755 --- a/install-tsinghua.sh +++ b/install-tsinghua.sh @@ -537,7 +537,7 @@ fi if ! [[ -d "${HOMEBREW_REPOSITORY}" ]]; then execute_sudo "/bin/mkdir" "-p" "${HOMEBREW_REPOSITORY}" fi -execute_sudo "$CHOWN" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" +execute_sudo "$CHOWN" "-R" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" if ! [[ -d "${HOMEBREW_CACHE}" ]]; then if [[ -z "${HOMEBREW_ON_LINUX-}" ]]; then @@ -550,10 +550,10 @@ if exists_but_not_writable "${HOMEBREW_CACHE}"; then execute_sudo "/bin/chmod" "g+rwx" "${HOMEBREW_CACHE}" fi if file_not_owned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHOWN" "$USER" "${HOMEBREW_CACHE}" + execute_sudo "$CHOWN" "-R" "$USER" "${HOMEBREW_CACHE}" fi if file_not_grpowned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHGRP" "$GROUP" "${HOMEBREW_CACHE}" + execute_sudo "$CHGRP" "-R" "$GROUP" "${HOMEBREW_CACHE}" fi if [[ -d "${HOMEBREW_CACHE}" ]]; then execute "$TOUCH" "${HOMEBREW_CACHE}/.cleaned" diff --git a/install.sh b/install.sh index 6e3cfe1..19f0853 100755 --- a/install.sh +++ b/install.sh @@ -537,7 +537,7 @@ fi if ! [[ -d "${HOMEBREW_REPOSITORY}" ]]; then execute_sudo "/bin/mkdir" "-p" "${HOMEBREW_REPOSITORY}" fi -execute_sudo "$CHOWN" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" +execute_sudo "$CHOWN" "-R" "$USER:$GROUP" "${HOMEBREW_REPOSITORY}" if ! [[ -d "${HOMEBREW_CACHE}" ]]; then if [[ -z "${HOMEBREW_ON_LINUX-}" ]]; then @@ -550,10 +550,10 @@ if exists_but_not_writable "${HOMEBREW_CACHE}"; then execute_sudo "/bin/chmod" "g+rwx" "${HOMEBREW_CACHE}" fi if file_not_owned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHOWN" "$USER" "${HOMEBREW_CACHE}" + execute_sudo "$CHOWN" "-R" "$USER" "${HOMEBREW_CACHE}" fi if file_not_grpowned "${HOMEBREW_CACHE}"; then - execute_sudo "$CHGRP" "$GROUP" "${HOMEBREW_CACHE}" + execute_sudo "$CHGRP" "-R" "$GROUP" "${HOMEBREW_CACHE}" fi if [[ -d "${HOMEBREW_CACHE}" ]]; then execute "$TOUCH" "${HOMEBREW_CACHE}/.cleaned"