summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Newgard2015-05-23 10:24:31 -0500
committerDoug Newgard2015-05-23 10:24:31 -0500
commit04754c5d761a083653578ba082fcc20148616c8d (patch)
treecf45f755dcdb1c740e0e0481f34c75bf7da4b6dd
parent10c71ef56cc6b72306b5e5e72e2c6bdf7188cdcd (diff)
downloadaur-04754c5d761a083653578ba082fcc20148616c8d.tar.gz
Use string formater for printf
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7ffd2e8f843..755ed7d1b68 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,7 +38,7 @@ pkgver() {
v_ver=$(awk -F , -v v_ver=$v_ver '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
- printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ printf "%s.%s.g%s" "$v_ver" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {