refact(spoolman): add global for db dir

This commit is contained in:
Alessandro Maggi
2024-06-08 13:30:35 +02:00
parent c82eb554a6
commit 2dd2fa17e4
2 changed files with 4 additions and 3 deletions

View File

@@ -69,9 +69,9 @@ function remove_spoolman(){
ok_msg "Spoolman directory removed!"
fi
if [[ -d "${HOME}/.local/share/spoolman" ]]; then
if [[ -d "${SPOOLMAN_DB_DIR}" ]]; then
status_msg "Removing spoolman db..."
rm -rf "${HOME}/.local/share/spoolman"
rm -rf "${SPOOLMAN_DB_DIR}"
ok_msg "Spoolman db removed!"
fi
@@ -231,7 +231,7 @@ function get_spoolman_status() {
files=(
"${SPOOLMAN_DIR}"
"${SYSTEMD}/Spoolman.service"
"${HOME}/.local/share/spoolman"
"${SPOOLMAN_DB_DIR}"
)
local count