From 55a9243b57912f4a8d914813247af25dced1f80c Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Sun, 29 May 2022 22:57:58 +0200 Subject: [PATCH] Replace exitIfRunning with running --- seqs/coturn.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seqs/coturn.sh b/seqs/coturn.sh index e48186a..319a831 100755 --- a/seqs/coturn.sh +++ b/seqs/coturn.sh @@ -49,7 +49,10 @@ step_10_info() { } step_10_alias() { echo "updateip"; } step_10() { - exitIfRunning + if running ; then + error "$toolName already running" + return 1 + fi shift local retryCount=$publicIpRetry local ipUpdater