From 6f46d44435bfbee16ed9fa192c5f1dc03aee2392 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 13 Feb 2016 19:31:28 +1100 Subject: [PATCH] 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