updateall : passage en sh

This commit is contained in:
Hippolyte Chauvin 2023-11-21 16:52:05 +01:00
parent 573ae6f6ec
commit d1f41b37c0

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# cd
cd "${HOME}/.config/$(basename "$(readlink -f "$0")")" || exit
@ -13,16 +13,13 @@ main() {
done
}
script="$1"
shift
case "$script" in
case "$1" in
"")
main "$@"
;;
*)
# Oui, ShellCheck, c'est bel et bien ce que j'essaie de faire
# shellcheck disable=SC2211
"${scripts_d}/"??"-${script}" "$@"
"${scripts_d}/"??"-${1}" "$@"
;;
esac