1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

autojump.zsh: use :h modifier instead of dirname

Ref: https://github.com/joelthelion/autojump/issues/249
This commit is contained in:
Daniel Hahler 2014-01-11 20:54:39 +01:00
parent 3ef1195077
commit 4a1de9d599

View File

@ -20,8 +20,8 @@ else
export AUTOJUMP_ERROR_PATH=~/.local/share/autojump/errors.log
fi
if [[ ! -d "$(dirname ${AUTOJUMP_ERROR_PATH})" ]]; then
mkdir -p "$(dirname ${AUTOJUMP_ERROR_PATH})"
if [[ ! -d ${AUTOJUMP_ERROR_PATH:h} ]]; then
mkdir -p ${AUTOJUMP_ERROR_PATH:h}
fi