@@ -4,19 +4,19 @@ set -e -u -f
44SCRIPTNAME=termux-job-scheduler
55
66show_usage () {
7- echo " Usage: termux-job-scheduler [options]"
8- echo " Schedule a Termux script to run later, or periodically "
9- echo " --script path to the Termux script to be called"
10- echo " --job-id int job id (will overwrite any previous job with the same id)"
11- echo " --pending boolean list pending jobs only (default false)"
12- echo " --period_ms int schedule job approximately every period_ms milliseconds (default 0 means once)"
13- echo " --network run only when this type of network available, default none (any|unmetered|cellular|not_roaming|none)"
14- echo " --battery-not-low boolean run only when battery is not low, default true (at least Androi O)"
15- echo " --storage-not-low boolean run only when storage is not low, default false (at least Androi O)"
16- echo " --charging boolean run only when charging, default false"
17- echo " --trigger-content-uri text (at least Android N)"
18- echo " --trigger-content-flag int default 1, (at least Android N)"
19- exit 0
7+ echo " Usage: termux-job-scheduler [options]"
8+ echo " Schedule a script to run at specificied time(s). "
9+ echo " --script path to the script to be called"
10+ echo " --job-id int job id (will overwrite any previous job with the same id)"
11+ echo " --pending boolean list pending jobs only (default false)"
12+ echo " --period-ms int schedule job approximately every period-ms milliseconds (default 0 means once)"
13+ echo " --network run only when this type of network available, default none (any|unmetered|cellular|not_roaming|none)"
14+ echo " --battery-not-low boolean run only when battery is not low, default true (at least Androi O)"
15+ echo " --storage-not-low boolean run only when storage is not low, default false (at least Androi O)"
16+ echo " --charging boolean run only when charging, default false"
17+ echo " --trigger-content-uri text (at least Android N)"
18+ echo " --trigger-content-flag int default 1, (at least Android N)"
19+ exit 0
2020}
2121
2222OPT_SCRIPT=" "
0 commit comments