X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=arc%2Finstall.sh;h=fb5f8c229ff0f2a82b1770a97e210f81c13044fc;hb=6b0212a48036df1bd4aef1a6dc0f17aa85c3612d;hp=81fb65f92b17300d6541c6a7aa79997c6085aac7;hpb=d4de3b49ef9bdf61c11a693855711d0fa05dcbe9;p=webi-installers%2F.git 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::')" } }