Skip to content

Commit 18aca1f

Browse files
committed
shellcheck: Fix SC2059 issue
See, $ find . -name "*.sh" | xargs shellcheck -i SC2059 In ./version.sh line 34: printf "${VER}" ^------^ SC2059: Don't use variables in the printf format string. Use printf '..%s..' "$foo". For more information: https://www.shellcheck.net/wiki/SC2059 -- Don't use variables in the printf... Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
1 parent cb6e3b7 commit 18aca1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ VER="$(head -n "1" "${VERSION_FILE}" | cut -d"." -f"${COMPONENT}")"
3131

3232
[ "x${VER}" = "x" ] && VER="0"
3333

34-
printf "${VER}"
34+
printf "%s" "${VER}"

0 commit comments

Comments
 (0)