Added tails support

This commit is contained in:
Dylan 2016-02-13 19:29:08 +11:00
parent 71e09d0d6d
commit 7132a82571
1 changed files with 4 additions and 1 deletions

5
fetch
View File

@ -430,6 +430,8 @@ case "$os" in
distro="CRUX" distro="CRUX"
else else
distro="$(grep -h '^NAME=' /etc/*ease)" distro="$(grep -h '^NAME=' /etc/*ease)"
[ -z "$distro" ] && distro="$(grep -h 'TAILS_PRODUCT_NAME' /etc/*ease)"
distro=${distro#NAME\=*} distro=${distro#NAME\=*}
distro=${distro#\"*} distro=${distro#\"*}
distro=${distro%*\"} distro=${distro%*\"}
@ -608,7 +610,8 @@ getpackages () {
packages="$(xbps-query -l | wc -l)" packages="$(xbps-query -l | wc -l)"
;; ;;
"Ubuntu"* | *"Mint"* | "CrunchBang"* | "Debian"* | "Kali"* | "Deepin Linux"* | "elementary"* | "Raspbian"* | "Zorin"*) "Ubuntu"* | *"Mint"* | "CrunchBang"* | "Debian"* | "Kali"* | "Deepin Linux"* |\
"elementary"* | "Raspbian"* | "Zorin"* | "Tails"*)
packages="$(dpkg --get-selections | grep -cv deinstall$)" packages="$(dpkg --get-selections | grep -cv deinstall$)"
;; ;;