distro script: Code cleanup

This commit is contained in:
Nils Steinger
2015-09-23 00:05:44 +02:00
parent c53b5ecdeb
commit 774312d457
+1 -4
View File
@@ -43,9 +43,7 @@ elif [ "${OS}" = "Linux" ] ; then
elif [ -f /etc/arch-release ] ; then elif [ -f /etc/arch-release ] ; then
DIST="Arch Linux" DIST="Arch Linux"
REV="" # Omit version since Arch Linux uses rolling releases REV="" # Omit version since Arch Linux uses rolling releases
fi elif [ -f /etc/UnitedLinux-release ] ; then
if [ -f /etc/UnitedLinux-release ] ; then
DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]" DIST="${DIST}[`cat /etc/UnitedLinux-release | tr "\n" ' ' | sed s/VERSION.*//`]"
fi fi
@@ -58,7 +56,6 @@ elif [ "${OS}" = "Linux" ] ; then
fi fi
fi fi
# OSSTR="${OS} ${DIST} ${REV}(${PSEUDONAME} ${KERNEL} ${MACH})"
if [ -n "${REV}" ] if [ -n "${REV}" ]
then then
OSSTR="${DIST} ${REV}" OSSTR="${DIST} ${REV}"