forked from ahurac/dotfiles
updateall : passage en sh
This commit is contained in:
parent
573ae6f6ec
commit
d1f41b37c0
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue