Use QVM_BIN_DIR fallback for script paths and set in flake
This commit is contained in:
parent
8d68e1daf9
commit
7864673dcb
6 changed files with 13 additions and 14 deletions
|
|
@ -21,8 +21,7 @@ readonly QVM_LIB_DIR="${QVM_LIB_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../lib
|
|||
source "${QVM_LIB_DIR}/common.sh"
|
||||
|
||||
# Get path to qvm-stop script
|
||||
readonly QVM_BIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
readonly QVM_STOP="${QVM_BIN_DIR}/qvm-stop"
|
||||
readonly QVM_STOP="${QVM_BIN_DIR:-$(dirname "$0")}/qvm-stop"
|
||||
|
||||
#
|
||||
# confirm_clean - Prompt user for confirmation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue