mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-30 06:39:33 +02:00
Use os-release file to check Ubuntu distro (#381)
Previous check uname -a does not work if user has changed kernel. Use os-release for true operating system identification.
This commit is contained in:
parent
4de1cb5a57
commit
123dfca594
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ installnodefedora() {
|
||||||
installnode() {
|
installnode() {
|
||||||
echo "Installing node..."
|
echo "Installing node..."
|
||||||
[ "$(uname)" == "Darwin" ] && installnodemac
|
[ "$(uname)" == "Darwin" ] && installnodemac
|
||||||
[ -n "$(uname -a | grep Ubuntu)" ] && installnodeubuntu
|
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installnodeubuntu
|
||||||
[ -f "/etc/arch-release" ] && installnodearch
|
[ -f "/etc/arch-release" ] && installnodearch
|
||||||
[ -f "/etc/artix-release" ] && installnodearch
|
[ -f "/etc/artix-release" ] && installnodearch
|
||||||
[ -f "/etc/fedora-release" ] && installnodefedora
|
[ -f "/etc/fedora-release" ] && installnodefedora
|
||||||
|
@ -62,7 +62,7 @@ installpiponfedora() {
|
||||||
installpip() {
|
installpip() {
|
||||||
echo "Installing pip..."
|
echo "Installing pip..."
|
||||||
[ "$(uname)" == "Darwin" ] && installpiponmac
|
[ "$(uname)" == "Darwin" ] && installpiponmac
|
||||||
[ -n "$(uname -a | grep Ubuntu)" ] && installpiponubuntu
|
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installpiponubuntu
|
||||||
[ -f "/etc/arch-release" ] && installpiponarch
|
[ -f "/etc/arch-release" ] && installpiponarch
|
||||||
[ -f "/etc/fedora-release" ] && installpiponfedora
|
[ -f "/etc/fedora-release" ] && installpiponfedora
|
||||||
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
[ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
|
||||||
|
@ -135,7 +135,7 @@ installonfedora() {
|
||||||
|
|
||||||
installextrapackages() {
|
installextrapackages() {
|
||||||
[ "$(uname)" == "Darwin" ] && installonmac
|
[ "$(uname)" == "Darwin" ] && installonmac
|
||||||
[ -n "$(uname -a | grep Ubuntu)" ] && installonubuntu
|
[ -n "$(cat /etc/os-release | grep Ubuntu)" ] && installonubuntu
|
||||||
[ -f "/etc/arch-release" ] && installonarch
|
[ -f "/etc/arch-release" ] && installonarch
|
||||||
[ -f "/etc/artix-release" ] && installonarch
|
[ -f "/etc/artix-release" ] && installonarch
|
||||||
[ -f "/etc/fedora-release" ] && installonfedora
|
[ -f "/etc/fedora-release" ] && installonfedora
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue