diff options
author | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:31:41 +0100 |
---|---|---|
committer | Mario Trangoni <mjtrangoni@gmail.com> | 2021-01-31 14:31:41 +0100 |
commit | 18aca1f69ce0b305c746b84ff90f8bf5a471ca33 (patch) | |
tree | b81baeebcb8c5b0269fd40d427fbe2bd4021f33d /version.sh | |
parent | cb6e3b7d33923b177b0b8ffbe61d6c5b62c09001 (diff) | |
download | nx-libs-18aca1f69ce0b305c746b84ff90f8bf5a471ca33.tar.gz nx-libs-18aca1f69ce0b305c746b84ff90f8bf5a471ca33.tar.bz2 nx-libs-18aca1f69ce0b305c746b84ff90f8bf5a471ca33.zip |
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>
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/version.sh b/version.sh index 891536890..f46600c50 100755 --- a/version.sh +++ b/version.sh @@ -31,4 +31,4 @@ VER="$(head -n "1" "${VERSION_FILE}" | cut -d"." -f"${COMPONENT}")" [ "x${VER}" = "x" ] && VER="0" -printf "${VER}" +printf "%s" "${VER}" |