mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 00:35:15 +08:00
change validation of buildfile
This commit is contained in:
parent
2c52c5285d
commit
9a7079190d
3
share/functions/__fish_complete_ant_targets.fish
Normal file → Executable file
3
share/functions/__fish_complete_ant_targets.fish
Normal file → Executable 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user