dev tools: Tolerate invalid input.

This commit is contained in:
Daniel Shahaf 2016-09-24 17:06:21 +00:00
parent a4196eda5e
commit 987c133486

View file

@ -40,7 +40,7 @@ if (( $# != 3 )) || [[ $1 == -* ]]; then
fi
buffer=$1
ZSH_HIGHLIGHT_HIGHLIGHTERS=( $2 )
fname=${0:A:h:h}/highlighters/$2/test-data/$3.zsh
fname=${0:A:h:h}/highlighters/$2/test-data/${3%.zsh}.zsh
exec 3>&1
exec >$fname
git add -N $fname