From aef717d3abe62a2dfd3569f61f1a6beb8ee52922 Mon Sep 17 00:00:00 2001 From: John Gee Date: Wed, 29 Jan 2020 21:47:54 +1300 Subject: [PATCH] Fix typo and improve comment Co-authored-by: DeeDeeG --- bin/n | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/n b/bin/n index 360f340..97e03b9 100755 --- a/bin/n +++ b/bin/n @@ -816,10 +816,10 @@ function can_use_xz() { # For research, see https://github.com/shadowspawn/nvh/issues/8 local uname_s="$(uname -s)" if [[ "${uname_s}" = "Linux" ]] && command -v xz &> /dev/null ; then - # tar on linux is likely to support xv if it is available separately + # tar on linux is likely to support xz if it is available as a command return 0 elif [[ "${uname_s}" = "Darwin" && "$(sw_vers -productVersion | cut -d '.' -f 2)" -gt "8" ]]; then - # tar on recent Darwin has xv support built-in + # tar on recent Darwin has xz support built-in return 0 fi return 2 # not supported