Remove '--arg state "$state"' from tasks filter when $state is not set

This commit is contained in:
Tortue Torche 2019-08-10 23:33:47 -04:00 committed by Tortue Torche
parent 50a5fa17ca
commit d4c11ec5eb

2
psu
View File

@ -1042,7 +1042,7 @@ tasks() {
echo "$tasks" | jq -jc "$filter_status | $filter_exclude_job_auto_detection | sort_by(.CreatedAt) | reverse | unique_by(.Slot)"
fi
else
echo "$tasks" | jq --arg state "$state" -jc 'sort_by(.CreatedAt) | reverse | unique_by(.Slot)'
echo "$tasks" | jq -jc 'sort_by(.CreatedAt) | reverse | unique_by(.Slot)'
fi
}