18 lines
464 B
Bash
18 lines
464 B
Bash
|
|
# shellcheck shell=bash
|
||
|
|
export DEPENDS=( mod/packages.bash )
|
||
|
|
|
||
|
|
_i_fzf() {
|
||
|
|
latest=$(github_latest junegunn/fzf)
|
||
|
|
diag "latest fzf $latest"
|
||
|
|
if ! is_latest fzf "$latest" $(current fzf); then
|
||
|
|
bin_from fzf "https://github.com/junegunn/fzf/releases/download/${latest}/fzf-${latest#v}-linux_amd64.tar.gz"
|
||
|
|
fi
|
||
|
|
}
|
||
|
|
apply() {
|
||
|
|
for fn in $(declare -F | awk '$3 ~ /^_i_/ { print $3 }'); do
|
||
|
|
$fn
|
||
|
|
done
|
||
|
|
|
||
|
|
diag "all manual packages up to date"
|
||
|
|
}
|