change validation of buildfile

This commit is contained in:
wyahiro 2019-01-18 10:24:14 +09:00
parent 2c52c5285d
commit 9a7079190d

3
share/functions/__fish_complete_ant_targets.fish Normal file → Executable file
View File

@ -46,7 +46,8 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an
end
set -l tokens $argv
if not set -l buildfile (realpath -eq $buildfile (__get_buildfile $tokens))
set -l buildfile (realpath -eq $buildfile (__get_buildfile $tokens))
if [ $status -ne 0 ]
return 1 # return nothing if buildfile does not exist
end