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

@@ -10,7 +10,7 @@ in_desktop_mode=""
in_reason=""
in_chore_name=""
rt_script_dir=$(realpath "$(dirname "$0")")
rt_script_dir=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
rt_has_mode_changed=0
rt_current_mode="unset"