Skip to content

Commit

Permalink
fix: the flag of purge build deps (#753)
Browse files Browse the repository at this point in the history
More hot fixes for #743
  • Loading branch information
eitsupi authored Jan 24, 2024
1 parent 203df6a commit 1828862
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/install_R_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/setup_R.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1828862

Please sign in to comment.