Compare commits
2 Commits
359135964c
...
29e9aafa32
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29e9aafa32 | ||
|
|
26425d0815 |
@ -1,4 +1,5 @@
|
|||||||
# vim: filetype=sh
|
# chezmoi:template:left-delimiter=#{{
|
||||||
|
#{{- /* vim: set filetype=sh: */ -}}
|
||||||
#shellcheck shell=sh
|
#shellcheck shell=sh
|
||||||
|
|
||||||
source_env_file() {
|
source_env_file() {
|
||||||
@ -78,6 +79,31 @@ yaml_to_json() (
|
|||||||
fi
|
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() (
|
github_releases() (
|
||||||
USER=${1}
|
USER=${1}
|
||||||
REPO=${2-}
|
REPO=${2-}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user