Skip to content

Commit

Permalink
functions.sh: Don't do "ls -l" of FILE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EricClaeys authored Jun 13, 2023
1 parent 462c670 commit 62e36c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 62e36c1

Please sign in to comment.