mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 06:41:42 +08:00
Update grunt.fish
Fixed command error when no local Gruntfile results in a command error. Fixes #1592.
This commit is contained in:
parent
35ba97cbdf
commit
556680cf5e
|
@ -8,8 +8,7 @@
|
|||
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
|
||||
|
||||
function __grunt_print_tasks
|
||||
set -l info (grunt --version --verbose ^/dev/null)
|
||||
set -l tasks (echo $info[4] | sed -e 's/Available tasks: //' | tr ' ' '\n')
|
||||
set -l tasks (grunt --version --verbose ^/dev/null | awk '/Available tasks: / {$1=$2=""; print $0}' | awk '{$1=$1}1' | tr ' ' '\n')
|
||||
for t in $tasks
|
||||
echo $t
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user