mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 16:52:18 +08:00
Update cplusplus.sh
This commit is contained in:
parent
3ac29a197d
commit
b76794efd7
|
@ -2,7 +2,15 @@
|
||||||
#by spiritlhl
|
#by spiritlhl
|
||||||
#from https://github.com/spiritLHLS/one-click-installation-script
|
#from https://github.com/spiritLHLS/one-click-installation-script
|
||||||
#version: 2022.12.27
|
#version: 2022.12.27
|
||||||
|
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
|
||||||
# Check if C++ is installed
|
# Check if C++ is installed
|
||||||
if ! type "g++" > /dev/null; then
|
if ! type "g++" > /dev/null; then
|
||||||
# Install C++ if it is not installed
|
# Install C++ if it is not installed
|
||||||
|
|
Loading…
Reference in New Issue
Block a user