initial commit

This commit is contained in:
Bernardo Magri
2026-04-01 17:06:01 +01:00
parent 12cdfaeeef
commit 33deeb494b
526 changed files with 12287 additions and 1 deletions

27
bin/nomarchy-version-channel Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
if grep -q "https://stable-mirror.nomarchy.org/" /etc/pacman.d/mirrorlist; then
mirror="stable"
elif grep -q "https://rc-mirror.nomarchy.org/" /etc/pacman.d/mirrorlist; then
mirror="rc"
elif grep -q "https://mirror.nomarchy.org/" /etc/pacman.d/mirrorlist; then
mirror="edge"
else
mirror="unknown"
fi
if grep -q "https://pkgs.nomarchy.org/stable/" /etc/pacman.conf; then
pkgs="stable"
elif grep -q "https://pkgs.nomarchy.org/edge/" /etc/pacman.conf; then
pkgs="edge"
elif grep -q "https://pkgs.nomarchy.org/rc/" /etc/pacman.conf; then
pkgs="rc"
else
pkgs="unknown"
fi
if [[ $mirror == $pkgs ]]; then
echo $mirror
else
echo "$mirror / $pkgs"
fi