From c22ff5ec91b0f665e7f7f1762672f3e21c54ed97 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 16 Feb 2016 21:54:21 +1100 Subject: [PATCH] Misc cleanup --- fetch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fetch b/fetch index 0696253f..4f9f3bfe 100755 --- a/fetch +++ b/fetch @@ -429,6 +429,7 @@ case "$os" in elif type -p crux >/dev/null 2>&1; then distro="CRUX" + else distro="$(grep -h '^NAME=' /etc/*ease)" @@ -437,16 +438,13 @@ case "$os" in [ -z "$distro" ] && distro="$(awk '/BLAG/ {print $1; exit}' /etc/*ease)" distro=${distro/*NAME\=} - distro=${distro#\"*} - distro=${distro%*\"} + distro=${distro//\"} fi ;; "Mac OS X") distro="Mac OS X $(sw_vers -productVersion)" - - [ "$osx_buildversion" == "on" ] && \ - distro+=" $(sw_vers -buildVersion)" + [ "$osx_buildversion" == "on" ] && distro+=" $(sw_vers -buildVersion)" ;; "OpenBSD")