Skip to content

Commit 5298aa8

Browse files
committed
make interval a string config type
1 parent 10f9131 commit 5298aa8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

waitfor/contents/sleep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ progress_tic() { if [[ -t 1 ]]; then printf -- "%s" "$@"; else printf -- "%s\n"
99
syntax_error "$0 <interval> <cycles> <progress?>"
1010
}
1111

12-
declare -r INTERVAL=$1 CYCLES=$2 PROGRESS=$3
12+
declare -r INTERVAL=$1
13+
declare -ri CYCLES=$2
14+
declare -r PROGRESS=$3
1315

1416
if [[ "$INTERVAL" =~ ^([0-9]+)([smh]?)$ ]]
1517
then

waitfor/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ providers:
239239
title: interval
240240
description: "the wait interval in seconds, minutes or hours. eg: 1s, 1m, 1h"
241241
required: true
242-
- type: Integer
242+
- type: String
243243
name: cycles
244244
title: Cycles
245245
description: "the number of sleep cycles"

0 commit comments

Comments
 (0)