diff --git a/build.sh b/build.sh
index f52cf3091632514b33f46dd2742ff0b4cb0ecf81..863dbbe4b0c3ad636ffe9f50bd17853b891ec300 100755
--- a/build.sh
+++ b/build.sh
@@ -75,7 +75,7 @@ done
 if [ -z $VERSION ]; then
     PROG_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1) | tr -d v)
 else
-    PROG_VERSION=$(echo $PROG_VERSION | tr -f v)
+    PROG_VERSION=$(echo $PROG_VERSION | tr -d v)
 fi
 
 if [ -z $OS ] || [ -z $ARCH ]; then