mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-19 10:27:13 +00:00
Change substitution to also work with tails
This commit is contained in:
2
fetch
2
fetch
@@ -432,7 +432,7 @@ case "$os" in
|
|||||||
distro="$(grep -h '^NAME=' /etc/*ease)"
|
distro="$(grep -h '^NAME=' /etc/*ease)"
|
||||||
[ -z "$distro" ] && distro="$(grep -h 'TAILS_PRODUCT_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%*\"}
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user