blob: 217e60520f310ec78efdb5cdb90023700d052589 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env sh
new_task="$1"
project="$(echo "$new_task" | jq '.project' --raw-output)"
[ "$project" = "null" ] && die "No project supplied!"
if ! tskm projects list | grep -q "^$project$"; then
die "The project '$project' is not (yet) registered, registered projects: $(tskm projects list | tr '\n' ',')"
fi
# vim: ft=sh
|