Skip to content

Commit 62e36c1

Browse files
authored
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.
1 parent 462c670 commit 62e36c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/functions.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,7 @@ function settings()
445445
return 0
446446
fi
447447

448-
echo "${M}: Unable to get json value for '${FIELD}'." >&2
449-
ls -l "${FILE}" >&2
448+
echo "${M}: Unable to get json value for '${FIELD}' in '${FILE}." >&2
450449

451450
return 2
452451
}

0 commit comments

Comments
 (0)