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
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue