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
d() {
if [ "$(uname -s)" = "Darwin" ]; then
echo 3
else
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then
echo 1
elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then
echo 2
else
if [ "$(uname -s)" = "Darwin" ]; then
echo 3
else
echo 0
fi
fi
}
m() {