From 62e36c1b5f641a288427a09dffc65c4fde872dec Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 12 Jun 2023 22:28:17 -0500 Subject: [PATCH] functions.sh: Don't do "ls -l" of FILE Often the jq fails because FILE doesn't exist, and jq outputs that error so there's no need to do "ls" of the file since it will also fail. --- scripts/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index af714fae8..50703dcb8 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -445,8 +445,7 @@ function settings() return 0 fi - echo "${M}: Unable to get json value for '${FIELD}'." >&2 - ls -l "${FILE}" >&2 + echo "${M}: Unable to get json value for '${FIELD}' in '${FILE}." >&2 return 2 }