nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
This commit is contained in:
parent
550eed06e0
commit
ee178b7d57
190 changed files with 5 additions and 6 deletions
17
unprocessed/config/polybar/linuxmismatch
Executable file
17
unprocessed/config/polybar/linuxmismatch
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue