dotfiles/unprocessed/config/polybar/linuxmismatch
Geoffrey Frogeye ee178b7d57
nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
2023-11-26 23:58:22 +01:00

18 lines
251 B
Bash
Executable file

#!/usr/bin/env bash
if ! which pacman &> /dev/null
then
exit 1
fi
packageVersion=$(pacman -Q linux | cut -d' ' -f2)
runningVersion=$(uname -r)
if echo "$runningVersion" | grep "^$packageVersion" &> /dev/null
then
exit 1
else
exit 0
fi