refactor: simplify builtin jobs parse script

This commit is contained in:
Jorge Bucaran 2018-10-08 14:24:31 +09:00
parent 2e933cad31
commit 23379887c0
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

View File

@ -408,14 +408,7 @@ function _fisher_status_report
end end
function _fisher_jobs function _fisher_jobs
jobs $argv | command awk -v FS=\t ' jobs $argv | command awk '/[0-9]+\t/ { print $1 }'
/[0-9]+\t/ {
jobs[++n] = $1
} END {
for (i in jobs) print(jobs[i])
exit n == 0
}
'
end end
function _fisher_wait function _fisher_wait