Fix after hook in freshrc

Doing `test && cmd` means that the command as a whole fails if the test
fails, which causes Fresh to think the hook failed. Using a proper
conditional (or suffixing `|| true`) would have done the trick.
Bo Jeanes 2020-10-25 08:45:19 +11:00
parent 0a357dac9b
commit b22171074f
1 changed files with 3 additions and 1 deletions

View File

@ -125,5 +125,7 @@ EOF
$vim +PlugUpdate +PlugClean +qall
fi
[ -d ~/.asdf/installs ] && find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions
if [ -d ~/.asdf/installs ]; then
find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions
fi
}