From 2f76066d95e080aa2d3d37e390f919e1758bf174 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 14 May 2020 17:43:04 -0400 Subject: [PATCH] bin: Simplify while loop condition --- bin/safeRun.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/safeRun.sh b/bin/safeRun.sh index 2eba74d4c..d9ea8d98c 100755 --- a/bin/safeRun.sh +++ b/bin/safeRun.sh @@ -36,8 +36,7 @@ fi [ -n "${LOG}" ] || fatal "Set a logfile as the first parameter" shift -while [ 1 ] -do +while true; do # Try to touch the file if it doesn't exist [ -f "${LOG}" ] || touch "${LOG}" || fatal "Logfile '${LOG}' is not writeable"