Quick fix on lsb_release related stuff

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2022-06-11 23:02:43 +08:00
parent 860b98aab2
commit e4793e6b2f
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 2 additions and 2 deletions

View File

@ -76,12 +76,12 @@ checkOs() {
# among other sorts of shitfuckery. We may need to also run tests through the CI to ensure nothing breaks. # among other sorts of shitfuckery. We may need to also run tests through the CI to ensure nothing breaks.
if echo "$OSTYPE" | grep -qE "linux-android.*"; then if echo "$OSTYPE" | grep -qE "linux-android.*"; then
export DOTFILES_OS_NAME=android-termux export DOTFILES_OS_NAME=android-termux
elif echo "$OSTYPE" | grep -qE '^linux-gnu.*' && [ "$(lsh_release -is)" == "Debian" ]; then elif echo "$OSTYPE" | grep -qE '^linux-gnu.*' && [ "$(lsb_release -is)" == "Debian" ]; then
export DOTFILES_OS_NAME=debian export DOTFILES_OS_NAME=debian
if [ -d '/google/devshell' ] && [ -f '/google/devshell/bashrc.google' ]; then if [ -d '/google/devshell' ] && [ -f '/google/devshell/bashrc.google' ]; then
export GOOGLE_CLOUD_SHELL=true export GOOGLE_CLOUD_SHELL=true
fi fi
elif $OSTYPE | grep -qE '^linux-gnu.*' && [ "$(lsh_release -is)" == "Ubuntu" ]; then elif $OSTYPE | grep -qE '^linux-gnu.*' && [ "$(lsb_release -is)" == "Ubuntu" ]; then
export DOTFILES_OS_NAME=ubuntu export DOTFILES_OS_NAME=ubuntu
else else
error "Script unsupported for this specific distro. If this was an downstream fork of another repo, you could override" error "Script unsupported for this specific distro. If this was an downstream fork of another repo, you could override"