From 422680ee9f85f5bf0ee0d1a98fa922aa3fe6c62d Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 14 Apr 2019 13:03:25 -0700 Subject: [PATCH] Fix chronometer refresh incorrectly reading the long argument sleep time `-r` worked, but `--refresh` did not. Fixes #2703 Signed-off-by: Mcat12 --- advanced/Scripts/chronometer.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/advanced/Scripts/chronometer.sh b/advanced/Scripts/chronometer.sh index 7c2d8b52..614d05ed 100755 --- a/advanced/Scripts/chronometer.sh +++ b/advanced/Scripts/chronometer.sh @@ -463,8 +463,7 @@ chronoFunc() { # Get refresh number if [[ "$*" == *"-r"* ]]; then num="$*" - num="${num/*-r /}" - num="${num/ */}" + num="${num/*-r* /}" num_str="Refresh set for every $num seconds" else num_str=""