Change substitution to also work with tails

This commit is contained in:
Dylan 2016-02-13 19:31:28 +11:00
parent 7132a82571
commit 6f46d44435

2
fetch
View file

@ -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