From 9611a24e8bf33b1e81342e384322d3497469f2b0 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 14 Dec 2020 17:37:57 +0000 Subject: [PATCH] update arc version info --- arc/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arc/install.sh b/arc/install.sh index 81fb65f..fb5f8c2 100644 --- a/arc/install.sh +++ b/arc/install.sh @@ -27,9 +27,10 @@ # pkg_get_current_version is recommended, but (soon) not required pkg_get_current_version() { - # 'arc version' has no version output - # TODO https://github.com/mholt/archiver/issues/196 - #echo $(arc version 2>/dev/null | head -n 1 | cut -d ' ' -f 2) - echo v0.0.0 + # 'arc version' has output in this format: + # arc v3.5.0 (25e050d) 2020-10-30T03:27:58Z + # This trims it down to just the version number: + # 3.5.0 + echo "$(arc version 2>/dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')" } } -- 2.25.1