]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: fix get-version script when no git and no dist version
authorVincent Bernat <vincent@bernat.im>
Wed, 5 Apr 2017 15:59:07 +0000 (17:59 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 5 Apr 2017 15:59:07 +0000 (17:59 +0200)
get-version

index 19a2e3ebe56e0a3b516daabe90ba79a62d5135cd..e926d88ba3aaab5c68fca5a5a3d0cf86105d86b7 100755 (executable)
@@ -40,7 +40,7 @@ elif [ -e .git ]; then
     version="$version-dirty"
   fi
 else
-  date +%F
+  version=$(date +%F)
 fi
 
 # Use printf to avoid the trailing new line that m4_esyscmd would not handle.