pass $mode to reload, find real path even when sourcing

This commit is contained in:
2024-10-10 10:20:47 +03:00
parent 245dc99887
commit 02fcdf794b
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
reve_installation="$HOME/.local/bin/reve"
reve_config="$HOME/.config/reve"
_current_dir=$(realpath "$(dirname "$0")")
_current_dir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
# shellcheck source=_reve_states.sh
source "$_current_dir/_reve_states" >&/dev/null
(($? == 1)) && source "$_current_dir/_reve_states.sh"
@@ -66,7 +66,7 @@ util_run_utility() {
}
reload() {
util_run_chore "$1"
util_run_chore "$1" "$2"
}
reload_util() {