diff options
Diffstat (limited to '.config/wmii-hg/rbar.sh')
-rw-r--r-- | .config/wmii-hg/rbar.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/wmii-hg/rbar.sh b/.config/wmii-hg/rbar.sh index 4f6faf1..8bff558 100644 --- a/.config/wmii-hg/rbar.sh +++ b/.config/wmii-hg/rbar.sh @@ -1,10 +1,10 @@ #!/bin/bash setup_trap() { - trap "rm -f -- ${HOME}/n/wmii*/rbar/${1}" EXIT + trap "rm -f -- \"\${XDG_RUNTIME_DIR}\"/n/wmii*/rbar/${1}" EXIT } write() { - dirs=("${HOME}"/n/wmii*/rbar/) + local dirs=("${XDG_RUNTIME_DIR}"/n/wmii*/rbar/) sponge|tee -a "${dirs[@]/%/${1}}" > /dev/null } |