mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
chore(sh): remove unnecessary 'echo' from all scripts
This commit is contained in:
@@ -15,7 +15,7 @@ function __init_bat() {
|
||||
# bat 0.15.4
|
||||
# This trims it down to just the version number:
|
||||
# 0.15.4
|
||||
echo $(bat --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
|
||||
bat --version 2> /dev/null | head -n 1 | cut -d' ' -f 2
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_chromedriver() {
|
||||
# ChromeDriver 88.0.4324.96 (68dba2d8a0b149a1d3afac56fa74648032bcf46b-refs/branch-heads/4324@{#1784})
|
||||
# This trims it down to just the version number:
|
||||
# 88.0.4324.96
|
||||
echo $(chromedriver --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
chromedriver --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function __init_comrak() {
|
||||
# comrak 0.8.1
|
||||
# This trims it down to just the version number:
|
||||
# 0.8.1
|
||||
echo $(comrak --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
|
||||
comrak --version 2> /dev/null | head -n 1 | cut -d' ' -f 2
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_dotenv_linter() {
|
||||
# dotenv-linter 0.99.9 (rev abcdef0123)
|
||||
# This trims it down to just the version number:
|
||||
# 0.99.9
|
||||
echo $(dotenv-linter --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
dotenv-linter --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function __init_fd() {
|
||||
# fd 8.1.1
|
||||
# This trims it down to just the version number:
|
||||
# 8.1.1
|
||||
echo $(fd --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
|
||||
fd --version 2> /dev/null | head -n 1 | cut -d' ' -f 2
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -35,7 +35,7 @@ function __init_ffmpeg() {
|
||||
# ...
|
||||
# This trims it down to just the version number:
|
||||
# 4.3.1
|
||||
echo $(ffmpeg -version 2> /dev/null | head -n 1 | cut -d ' ' -f 3)
|
||||
ffmpeg -version 2> /dev/null | head -n 1 | cut -d ' ' -f 3
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function __init_fzf() {
|
||||
# 0.21.1 (334a4fa)
|
||||
# This trims it down to just the version number:
|
||||
# 0.21.1
|
||||
echo $(fzf --version 2> /dev/null | head -n 1 | cut -d' ' -f 1)
|
||||
fzf --version 2> /dev/null | head -n 1 | cut -d' ' -f 1
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_gh() {
|
||||
# gh 0.99.9 (rev abcdef0123)
|
||||
# This trims it down to just the version number:
|
||||
# 0.99.9
|
||||
echo $(gh --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
gh --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_goreleaser() {
|
||||
# goreleaser 0.99.9 (rev abcdef0123)
|
||||
# This trims it down to just the version number:
|
||||
# 0.99.9
|
||||
echo $(goreleaser --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
goreleaser --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function __init_hexyl() {
|
||||
# hexyl 0.8.0
|
||||
# This trims it down to just the version number:
|
||||
# 0.8.0
|
||||
echo $(hexyl --version 2> /dev/null | head -n 1 | cut -d' ' -f 2)
|
||||
hexyl --version 2> /dev/null | head -n 1 | cut -d' ' -f 2
|
||||
}
|
||||
|
||||
pkg_install() {
|
||||
|
||||
@@ -15,7 +15,7 @@ function __init_jq() {
|
||||
# jq-1.6
|
||||
# This trims it down to just the version number:
|
||||
# 1.6
|
||||
echo $(jq --version 2> /dev/null | head -n 1 | sed 's:^jq-::')
|
||||
jq --version 2> /dev/null | head -n 1 | sed 's:^jq-::'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ function __init_k9s() {
|
||||
|
||||
# This trims it down to just the version number:
|
||||
# 0.24.2
|
||||
echo $(k9s version 2> /dev/null | grep Version: | cut -d 'v' -f 2)
|
||||
k9s version 2> /dev/null | grep Version: | cut -d 'v' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_lsd() {
|
||||
# lsd 0.17.0
|
||||
# This trims it down to just the version number:
|
||||
# 0.17.0
|
||||
echo $(lsd --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
lsd --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_mutagen() {
|
||||
# 0.11.8
|
||||
# This trims it down to just the version number:
|
||||
# 0.11.8
|
||||
echo $(mutagen version 2> /dev/null | head -n 1 | cut -d ' ' -f1)
|
||||
mutagen version 2> /dev/null | head -n 1 | cut -d ' ' -f1
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ function __init_pandoc() {
|
||||
# for a particular purpose.
|
||||
# This trims it down to just the version number:
|
||||
# 2.10.1
|
||||
echo $(pandoc --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
pandoc --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ pkg_cmd_name="pathman"
|
||||
WEBI_SINGLE=true
|
||||
|
||||
function pkg_get_current_version() {
|
||||
echo $(pathman version 2> /dev/null | head -n 1 | cut -d ' ' -f2 | sed 's:^v::')
|
||||
pathman version 2> /dev/null | head -n 1 | cut -d ' ' -f2 | sed 's:^v::'
|
||||
}
|
||||
|
||||
function pkg_done_message() {
|
||||
|
||||
@@ -35,7 +35,7 @@ function __init_rg() {
|
||||
# +SIMD -AVX (runtime)
|
||||
# This trims it down to just the version number:
|
||||
# 12.1.1
|
||||
echo $(rg --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
rg --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ function __init_sass() {
|
||||
}
|
||||
|
||||
pkg_get_current_version() {
|
||||
echo $(sass --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
sass --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function __init_sd() {
|
||||
# sd 0.99.9 (rev abcdef0123)
|
||||
# This trims it down to just the version number:
|
||||
# 0.99.9
|
||||
echo $(sd --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
sd --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ function __init_shellcheck() {
|
||||
|
||||
# This trims it down to just the version number:
|
||||
# 0.7.1
|
||||
echo $(shellcheck --version 2> /dev/null | head -n 2 | tail -n 1 | cut -d' ' -f 2)
|
||||
shellcheck --version 2> /dev/null | head -n 2 | tail -n 1 | cut -d' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ function __init_shfmt() {
|
||||
}
|
||||
|
||||
pkg_get_current_version() {
|
||||
echo $(shfmt --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
shfmt --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ function __init_watchexec() {
|
||||
# watchexec 0.99.9
|
||||
# This trims it down to just the version number:
|
||||
# 0.99.9
|
||||
echo $(watchexec --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
|
||||
watchexec --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ function __init_xz() {
|
||||
# liblzma 5.2.5
|
||||
# This trims it down to just the version number:
|
||||
# 5.2.5
|
||||
echo $(xz --version 2> /dev/null | head -n 1 | cut -d ' ' -f 4)
|
||||
xz --version 2> /dev/null | head -n 1 | cut -d ' ' -f 4
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user