getdistro now runs at the start of the script with getos so we can use it in detection

This commit is contained in:
dylan araps 2016-01-05 18:56:05 +11:00
parent 528296626c
commit 26495ccab5

View file

@ -229,7 +229,6 @@ case "$(uname)" in
esac
# Get Distro
getdistro () {
case "$os" in
"Linux" )
if type -p crux >/dev/null 2>&1; then
@ -281,7 +280,6 @@ getdistro () {
distro="Unknown"
;;
esac
}
# Get Title
gettitle () {