Small correction for MacOS

This commit is contained in:
2024-01-18 18:43:34 +00:00
parent 5e30ce3f22
commit a15fcc3e73

View File

@@ -4,17 +4,18 @@
source ~/dotfiles/scripts/color.sh source ~/dotfiles/scripts/color.sh
d() { d() {
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then if [ "$(uname -s)" = "Darwin" ]; then
echo 1 echo 3
elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then
echo 2
else else
if [ "$(uname -s)" = "Darwin" ]; then if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
echo 3 echo 1
elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then
echo 2
else else
echo 0 echo 0
fi fi
fi fi
} }
m() { m() {