mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
[CI] Add isdistro helper script
Usage:
if ./isdistro buster
then
echo Debian 10
elif ./isdistro xenial
then
echo Ubuntu 16.04
elif ./isdistro fedora-32
then
echo Fedora 32
else
echo None of the above
fi
This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
test "$#" -eq 1 || exit 2
|
||||
. /etc/os-release || exit 3
|
||||
test "$1" = "$VERSION_CODENAME" || test "$1" = "$ID"-"$VERSION_ID" || exit 1
|
||||
Reference in New Issue
Block a user