From 1828862223cd0a5357f2523c0dc85777c64fb9b7 Mon Sep 17 00:00:00 2001 From: eitsupi <50911393+eitsupi@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:42:21 +0900 Subject: [PATCH] fix: the flag of purge build deps (#753) More hot fixes for #743 --- scripts/install_R_source.sh | 2 +- scripts/setup_R.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install_R_source.sh b/scripts/install_R_source.sh index 9d5159d4..4e5a8281 100755 --- a/scripts/install_R_source.sh +++ b/scripts/install_R_source.sh @@ -159,7 +159,7 @@ rm -rf "R.tar.gz" cp /usr/bin/checkbashisms /usr/local/bin/checkbashisms # shellcheck disable=SC2086 -if [ "${PURGE_BUILDDEPS}" == "true" ]; then +if [ "${PURGE_BUILDDEPS}" != "false" ]; then apt-get remove --purge -y ${BUILDDEPS} fi apt-get autoremove -y diff --git a/scripts/setup_R.sh b/scripts/setup_R.sh index 9c68cc7c..c2e8202a 100755 --- a/scripts/setup_R.sh +++ b/scripts/setup_R.sh @@ -10,7 +10,7 @@ set -e CRAN=${1:-${CRAN:-"https://cran.r-project.org"}} -PURGE_BUILDDEPS=${PURGE_BUILDDEPS=-"true"} +PURGE_BUILDDEPS=${PURGE_BUILDDEPS:-"true"} ARCH=$(uname -m) @@ -69,7 +69,7 @@ if [ ! -x "$(command -v r)" ]; then # Clean up # shellcheck disable=SC2086 - if [ "${PURGE_BUILDDEPS}" == "true" ]; then + if [ "${PURGE_BUILDDEPS}" != "false" ]; then apt-get remove --purge -y ${BUILDDEPS} fi apt-get autoremove -y