Update R.sh

This commit is contained in:
SuperYuIuo 2023-04-27 20:46:44 +08:00 committed by GitHub
parent a026da081e
commit c83913606f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,15 @@
#by spiritlhl
#from https://github.com/spiritLHLS/one-click-installation-script
#version: 2023.04.08
utf8_locale=$(locale -a 2>/dev/null | grep -i -m 1 -E "UTF-8|utf8")
if [[ -z "$utf8_locale" ]]; then
echo "No UTF-8 locale found"
else
export LC_ALL="$utf8_locale"
export LANG="$utf8_locale"
export LANGUAGE="$utf8_locale"
echo "Locale set to $utf8_locale"
fi
ver="2023.04.08"
changeLog="一键安装R语言环境"
source ~/.bashrc