1
0
mirror of https://github.com/go-task/task.git synced 2025-03-03 14:52:13 +02:00

Accept : multiple times

This commit is contained in:
Ron van der Heijden 2020-06-13 17:01:14 +02:00
parent bf64259af3
commit 10986d3a7c

View File

@ -5,7 +5,7 @@ function __list() {
local -a scripts
if [ -f Taskfile.yml ]; then
scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/'))
scripts=($(task -l | sed '1d' | sed 's/^\* //' | awk '{ print $1 }' | sed 's/:$//' | sed 's/:/\\:/g'))
_describe 'script' scripts
fi
}