mirror of https://github.com/bjeanes/dotfiles.git
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.
parent
0a357dac9b
commit
b22171074f
4
freshrc
4
freshrc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue