From 7132a825711333a08253dc0b6cb5d4dc76e3fbcf Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 13 Feb 2016 19:29:08 +1100 Subject: [PATCH] Added tails support --- fetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index f7aa4b55..ba2c8bd7 100755 --- a/fetch +++ b/fetch @@ -430,6 +430,8 @@ case "$os" in distro="CRUX" else distro="$(grep -h '^NAME=' /etc/*ease)" + [ -z "$distro" ] && distro="$(grep -h 'TAILS_PRODUCT_NAME' /etc/*ease)" + distro=${distro#NAME\=*} distro=${distro#\"*} distro=${distro%*\"} @@ -608,7 +610,8 @@ getpackages () { 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$)" ;;