Compare commits
No commits in common. "29e9aafa32b7ea93dc06e15b0d4c713446d8aea6" and "359135964c692ea8931edb329ff8265337226811" have entirely different histories.
29e9aafa32
...
359135964c
@ -1,5 +1,4 @@
|
||||
# chezmoi:template:left-delimiter=#{{
|
||||
#{{- /* vim: set filetype=sh: */ -}}
|
||||
# vim: filetype=sh
|
||||
#shellcheck shell=sh
|
||||
|
||||
source_env_file() {
|
||||
@ -79,31 +78,6 @@ yaml_to_json() (
|
||||
fi
|
||||
)
|
||||
|
||||
#{{ if lookPath "rg" -}}
|
||||
github_install_scripts () (
|
||||
rg github.com "${HOME}/.local/bin" \
|
||||
| sed 's/:/ /' \
|
||||
| sed 's/=/ /g' \
|
||||
| awk '{print $3}' \
|
||||
| sed 's|https://github.com/||g' \
|
||||
| sed 's|/| |g' \
|
||||
| awk '{print $1 " " $2}' \
|
||||
| sed 's| |/|g' \
|
||||
| sort \
|
||||
| uniq
|
||||
)
|
||||
|
||||
github_install_scripts_latest_releases() (
|
||||
for REPO in $(github_install_scripts); do
|
||||
echo "${REPO} $(github_latest_release "${REPO}")"
|
||||
done
|
||||
)
|
||||
#{{- end }}
|
||||
|
||||
github_latest_release() (
|
||||
github_tags "$@" | head -n 1
|
||||
)
|
||||
|
||||
github_releases() (
|
||||
USER=${1}
|
||||
REPO=${2-}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user