blob: b2b0508d175475e9324a17501ffe415916590867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
uuid="$1"
current_priority=$(task _get "$uuid".manual_priority)
# Check if manual_priority is set; if not, initialize to 0
if [ -z "$current_priority" ]; then
current_priority=0
fi
# Decrement the priority using expr
new_priority=$((current_priority - 1))
# Update the task with the new manual_priority value
task rc.bulk=0 rc.confirmation=off "$uuid" modify manual_priority="$new_priority"
|