aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/grunt.fish
diff options
context:
space:
mode:
authorGravatar Kevin Stone <kevinastone@users.noreply.github.com>2014-08-02 00:04:26 -0700
committerGravatar Kevin Stone <kevinastone@users.noreply.github.com>2014-08-02 00:04:26 -0700
commit556680cf5ef17b7dd394dcdbcf06b89781390d08 (patch)
treeee4df9b0d2feb5947048626659c83a5cc14e0905 /share/completions/grunt.fish
parent35ba97cbdf52027e3d2f76f24ab4ac034685f098 (diff)
Update grunt.fish
Fixed command error when no local Gruntfile results in a command error. Fixes #1592.
Diffstat (limited to 'share/completions/grunt.fish')
-rw-r--r--share/completions/grunt.fish3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/completions/grunt.fish b/share/completions/grunt.fish
index 145801ff..f02578ea 100644
--- a/share/completions/grunt.fish
+++ b/share/completions/grunt.fish
@@ -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