From d9498b99fd3db9ba0d4662960a066a2dfd78f115 Mon Sep 17 00:00:00 2001 From: cyanide-burnout Date: Thu, 24 Mar 2016 14:33:02 +0400 Subject: [PATCH] Fixes in UpdateLog.sh --- UpdateLog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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