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