Shellcheck compliance, not that it is important right now
This commit is contained in:
@@ -11,11 +11,11 @@ if [ "${OS}" = "SunOS" ] ; then
|
||||
elif [ "${OS}" = "AIX" ] ; then
|
||||
OSSTR="${OS} $(oslevel) ($(oslevel -r))"
|
||||
elif [ "${OS}" = "Linux" ] ; then
|
||||
KERNEL=$(uname -r)
|
||||
#KERNEL=$(uname -r)
|
||||
if [ -f /etc/redhat-release ] ; then
|
||||
DIST="$(cat /etc/redhat-release)"
|
||||
elif [ -f /etc/SuSE-release ] ; then
|
||||
DIST=$(tr "\n" ' ' < /etc/SuSE-release | sed s/VERSION.*//)
|
||||
DIST=$(tr "\\n" ' ' < /etc/SuSE-release | sed s/VERSION.*//)
|
||||
elif [ -f /etc/debian_version ] ; then
|
||||
DIST="Debian $(cat /etc/debian_version)"
|
||||
elif [ -f /etc/slackware-version ] ; then
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
OS=`sh detect-unix.sh`
|
||||
OS=$(sh detect-unix.sh)
|
||||
|
||||
# Determine task
|
||||
#case $1 in
|
||||
@@ -24,4 +24,4 @@ esac
|
||||
#if [ "$OS" = "Arch Linux" ] ; then
|
||||
# PM="pacman"
|
||||
#fi
|
||||
echo $PM
|
||||
echo $PM
|
||||
|
||||
Reference in New Issue
Block a user