|
|
@ -14,21 +14,6 @@ source_env_file() {
|
|
|
|
)"
|
|
|
|
)"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#{{ 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
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
#{{- end }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make_scripts() (
|
|
|
|
make_scripts() (
|
|
|
|
for FILE in "$@"; do
|
|
|
|
for FILE in "$@"; do
|
|
|
|
make_script "${FILE}"
|
|
|
|
make_script "${FILE}"
|
|
|
@ -94,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-}
|
|
|
|