diff --git a/UpdateLog.sh b/UpdateLog.sh index b3d4868..bef00ea 100755 --- a/UpdateLog.sh +++ b/UpdateLog.sh @@ -1,7 +1,7 @@ #!/bin/bash FILE=$(mktemp) -VERSION=$(grep -o -E "[0-9]+" Version.h) +VERSION=(grep -o -E "[0-9]+" Version.h) DATE=$(date +"%a, %d %b %a %H:%M:%S %z") echo "brandmeister ${VERSION} none; urgency=low" >> ${FILE} @@ -11,5 +11,5 @@ echo >> ${FILE} echo " -- Artem Prilutskiy ${DATE}" >> ${FILE} echo >> ${FILE} -cat debian/changelog >> ${FILE} +test -f debian/changelog && cat debian/changelog >> ${FILE} mv ${FILE} debian/changelog