Commit 153fa2cd authored by Pierre-Elliott Bécue's avatar Pierre-Elliott Bécue

which retourne une erreur si la commande n'existe pas. On l'envoit dans dev/null

parent d69491f8
......@@ -400,7 +400,7 @@ vcs_info(){
if [[ disabled[${vcss[$i]}] -eq 1 ]]; then
continue
fi
commands[${vcss[$i]}]=$(which ${vcss[$i]});
commands[${vcss[$i]}]=$( (which ${vcss[$i]} 2>/dev/null >&2 && which ${vcss[i]})||echo true);
done;
found=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment