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

@@ -6,7 +6,7 @@
# reve internal: _reve_states
# defines state management API
_current_dir=$(realpath "$(dirname "$0")")
_current_dir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
# shellcheck source=_reve_utils.sh
source "$_current_dir/_reve_utils" >&/dev/null
(($? == 1)) && source "$_current_dir/_reve_utils.sh"