dotfiles/bin/updateall
2023-11-21 16:52:05 +01:00

25 lines
465 B
Bash
Executable file

#!/bin/sh
# cd
cd "${HOME}/.config/$(basename "$(readlink -f "$0")")" || exit
scripts_d=./scripts
# Procédure principale
main() {
for i in "${scripts_d}/"*; do
separator "$(basename "$i" | cut -d '-' -f 2)"
"$i"
done
}
case "$1" in
"")
main "$@"
;;
*)
# Oui, ShellCheck, c'est bel et bien ce que j'essaie de faire
# shellcheck disable=SC2211
"${scripts_d}/"??"-${1}" "$@"
;;
esac