updateall : suppression de la variable realpath

This commit is contained in:
Hippolyte Chauvin 2023-11-21 16:50:06 +01:00
parent 53febf8df0
commit 573ae6f6ec

View file

@ -1,11 +1,7 @@
#!/bin/bash
# Variables
realpath="$(readlink -f "$0")"
# cd
cd "${HOME}/.config/$(basename "$realpath")" || exit
unset realpath
cd "${HOME}/.config/$(basename "$(readlink -f "$0")")" || exit
scripts_d=./scripts
@ -30,4 +26,3 @@ case "$script" in
"${scripts_d}/"??"-${script}" "$@"
;;
esac