From 7132a825711333a08253dc0b6cb5d4dc76e3fbcf Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 13 Feb 2016 19:29:08 +1100 Subject: [PATCH 1/3] 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$)" ;; From 6f46d44435bfbee16ed9fa192c5f1dc03aee2392 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 13 Feb 2016 19:31:28 +1100 Subject: [PATCH 2/3] Change substitution to also work with tails --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index ba2c8bd7..fbd76fef 100755 --- a/fetch +++ b/fetch @@ -432,7 +432,7 @@ case "$os" in 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%*\"} fi From 9f93bb681d245ec4ab1c7e6ea6e5b14622b1d3b0 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 13 Feb 2016 19:55:58 +1100 Subject: [PATCH 3/3] Added ascii art for Tails Linux --- ascii/distro/tails | 21 +++++++++++++++++++++ fetch | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 ascii/distro/tails diff --git a/ascii/distro/tails b/ascii/distro/tails new file mode 100644 index 00000000..49729f10 --- /dev/null +++ b/ascii/distro/tails @@ -0,0 +1,21 @@ +"\ +${c1} \`\` + ./yhNh + syy/Nshh \`:o/ + N:dsNshh █ \`ohNMMd + N-/+Nshh \`yMMMMd + N-yhMshh yMMMMd + N-s:hshh █ yMMMMd so//. + N-oyNsyh yMMMMd d Mms. + N:hohhhd:. yMMMMd syMMM+ + Nsyh+-..+y+- yMMMMd :mMM+ + +hy- -ss/\`yMMMM \`+d+ + :sy/. ./yNMMMMm \`\` + .+ys- \`:+hNMMMMMMy/\` + \`hNmmMMMMMMMMMMMMdo. + dMMMMMMMMMMMMMMMMMNh: + +hMMMMMMMMMMMMMMMMMmy. + -oNMMMMMMMMMMmy+.\` + \`:yNMMMds/.\` + .//\` +" diff --git a/fetch b/fetch index fbd76fef..98996308 100755 --- a/fetch +++ b/fetch @@ -1630,7 +1630,7 @@ getascii () { ascii_distro="mint" ;; - "NetBSD"* | "Parabola"*) + "NetBSD"* | "Parabola"* | "Tails"*) c1=$(color 5) c2=$(color 7) ;;