mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
chore(sh): remove more unnecessary 'echo' from all scripts (fix #466)
This commit is contained in:
@@ -33,7 +33,7 @@ function __init_arc() {
|
||||
# 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::')"
|
||||
arc version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ function pkg_get_current_version() {
|
||||
# v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
|
||||
# This trims it down to just the version number:
|
||||
# 2.1.0
|
||||
echo "$(awless version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')"
|
||||
awless version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::'
|
||||
}
|
||||
|
||||
function pkg_install() {
|
||||
|
||||
@@ -19,7 +19,7 @@ function pkg_get_current_version() {
|
||||
# v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
|
||||
# This trims it down to just the version number:
|
||||
# 2.1.0
|
||||
echo "$(caddy version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::')"
|
||||
caddy version 2> /dev/null | head -n 1 | cut -d' ' -f1 | sed 's:^v::'
|
||||
}
|
||||
|
||||
function pkg_install() {
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_dashmsg() {
|
||||
# dashmsg v0.9.0 (6d73209) 2022-03-12T09:07:43Z
|
||||
# This trims it down to just the version number:
|
||||
# 0.9.0
|
||||
echo "$(dashmsg --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
dashmsg --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ function pkg_get_current_version() {
|
||||
# typescript 3.9.2
|
||||
# This trims it down to just the version number:
|
||||
# 1.1.1
|
||||
echo "$(deno --version 2> /dev/null | head -n 1 | cut -d' ' -f2)"
|
||||
deno --version 2> /dev/null | head -n 1 | cut -d' ' -f2
|
||||
}
|
||||
|
||||
function pkg_install() {
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_dotenv() {
|
||||
# dotenv v1.0.0 (17c7677) 2020-10-19T23:43:57Z
|
||||
# This trims it down to just the version number:
|
||||
# 1.0.0
|
||||
echo "$(dotenv --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
dotenv --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ function pkg_get_current_version() {
|
||||
# Tools • Dart 2.9.0 (build 2.9.0-14.1.beta)
|
||||
# This trims it down to just the version number:
|
||||
# 1.19.0-4.1.pre
|
||||
echo "$(flutter --version 2> /dev/null | head -n 1 | cut -d' ' -f2)"
|
||||
flutter --version 2> /dev/null | head -n 1 | cut -d' ' -f2
|
||||
}
|
||||
|
||||
function pkg_format_cmd_version() {
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_gitdeploy() {
|
||||
# gitdeploy v0.7.1 (be68fec) 2020-10-20T22:27:47Z)
|
||||
# This trims it down to just the version number:
|
||||
# 0.7.1
|
||||
echo "$(gitdeploy --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
gitdeploy --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ function pkg_get_current_version() {
|
||||
# v2.1.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
|
||||
# This trims it down to just the version number:
|
||||
# 2.0.0
|
||||
echo "$(gitea --version 2> /dev/null | head -n 1 | cut -d' ' -f3)"
|
||||
gitea --version 2> /dev/null | head -n 1 | cut -d' ' -f3
|
||||
}
|
||||
|
||||
function pkg_link() {
|
||||
|
||||
@@ -10,5 +10,5 @@ function pkg_get_current_version() {
|
||||
# Hugo Static Site Generator v0.72.0-8A7EF3CF darwin/amd64 BuildDate: 2020-05-31T12:07:44Z
|
||||
# This trims it down to just the version number:
|
||||
# 0.72.0
|
||||
echo "$(hugo version 2> /dev/null | head -n 1 | cut -d' ' -f5 | cut -d '-' -f1 | sed 's:^v::')"
|
||||
hugo version 2> /dev/null | head -n 1 | cut -d' ' -f5 | cut -d '-' -f1 | sed 's:^v::'
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_keypairs() {
|
||||
# keypairs v0.6.5 (7e6fd17) 2020-10-21T06:26:46Z
|
||||
# This trims it down to just the version number:
|
||||
# 0.6.5
|
||||
echo "$(keypairs --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
keypairs --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ function pkg_get_current_version() {
|
||||
# postgres (PostgreSQL) 10.13
|
||||
# This trims it down to just the version number:
|
||||
# 10.13
|
||||
echo "$(postgres --version 2> /dev/null | head -n 1 | cut -d' ' -f3)"
|
||||
postgres --version 2> /dev/null | head -n 1 | cut -d' ' -f3
|
||||
}
|
||||
|
||||
function pkg_install() {
|
||||
|
||||
@@ -14,7 +14,7 @@ function __init_powershell() {
|
||||
# PowerShell 7.0.2
|
||||
# This trims it down to just the version number:
|
||||
# 7.0.2
|
||||
echo "$(pwsh --version 2> /dev/null | head -n 1 | cut -d' ' -f2)"
|
||||
pwsh --version 2> /dev/null | head -n 1 | cut -d' ' -f2
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -36,7 +36,7 @@ function __init_rclone() {
|
||||
# - go version: go1.15.7
|
||||
# This trims it down to just the version number:
|
||||
# 1.54.0
|
||||
echo "$(rclone --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
rclone --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_sclient() {
|
||||
# sclient 1.3.3 (455db50) 2020-12-02T22:05:35Z
|
||||
# This trims it down to just the version number:
|
||||
# 1.3.3
|
||||
echo "$(sclient --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
sclient --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ function __init_serviceman() {
|
||||
# serviceman v0.8.0 (f3ab547) 2020-12-02T16:19:10-07:00
|
||||
# This trims it down to just the version number:
|
||||
# 0.8.0
|
||||
echo "$(serviceman --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
serviceman --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ function __init_syncthing() {
|
||||
# syncthing v1.12.1 "Fermium Flea" (go1.15.5 darwin-amd64) teamcity@build.syncthing.net 2020-12-06 12:46:27 UTC
|
||||
# This trims it down to just the version number:
|
||||
# 1.12.1
|
||||
echo "$(syncthing --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::')"
|
||||
syncthing --version 2> /dev/null | head -n 1 | cut -d' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user