Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
246 B

ITEMS=$2
PRIORITY=$3
if [[ $ITEMS =~ ^([0-9]+)-([0-9]+)$ ]]; then
START=${BASH_REMATCH[1]}
END=${BASH_REMATCH[2]}
for i in $(seq $START $END); do
todo.sh command pri $i $PRIORITY || break
done
else
todo.sh command pri $ITEMS $PRIORITY
fi