getdistro now runs at the start of the script with getos so we can use it in detection
This commit is contained in:
parent
528296626c
commit
26495ccab5
1 changed files with 42 additions and 44 deletions
6
fetch.sh
6
fetch.sh
|
@ -229,8 +229,7 @@ case "$(uname)" in
|
|||
esac
|
||||
|
||||
# Get Distro
|
||||
getdistro () {
|
||||
case "$os" in
|
||||
case "$os" in
|
||||
"Linux" )
|
||||
if type -p crux >/dev/null 2>&1; then
|
||||
distro="CRUX"
|
||||
|
@ -280,8 +279,7 @@ getdistro () {
|
|||
*)
|
||||
distro="Unknown"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
esac
|
||||
|
||||
# Get Title
|
||||
gettitle () {
|
||||
|
|
Loading…
Reference in a new issue