]> Freerunner's - dotfiles.git/commitdiff
upgrayyedd: only 4 gentoo
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Apr 2025 22:31:07 +0000 (00:31 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Apr 2025 22:31:07 +0000 (00:31 +0200)
dot-local/bin/upgrayyedd

index 805999586d41bcf6b6ad743054a7c50717cef19a..0bc25369e75fdbebaf738706f4dfdf8ddab940b5 100755 (executable)
@@ -1,5 +1,8 @@
 #!/bin/bash
 
+#make sure we're running gentoo
+test $(grep -e ^ID /etc/os-release | cut -f2 -d\=) = gentoo || exit
+
 source /etc/portage/make.conf
 
 if [[ $(id -u) -ne 0 ]];