summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-09-04 11:37:49 -0300
committerRenato Botelho <renato@netgate.com>2015-09-04 11:37:49 -0300
commit003c914edbd5e9be562caa3ac456a21ef2b63586 (patch)
tree868886c291d76655cd04191793d5dce8f12e55eb /build.sh
parent906ca3b03eb977922d274766d3a8b57ac3db7902 (diff)
downloadpfsense-003c914edbd5e9be562caa3ac456a21ef2b63586.zip
pfsense-003c914edbd5e9be562caa3ac456a21ef2b63586.tar.gz
Avoid adding empty line at log head
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index e4e23d7..a1b4ded 100755
--- a/build.sh
+++ b/build.sh
@@ -332,8 +332,8 @@ fi
echo ">>> Building image type(s): ${_IMAGESTOBUILD}"
if [ -n "${SNAPSHOTS}" ]; then
- echo "" > $SNAPSHOTSLOGFILE
- echo "" > $SNAPSHOTSLASTUPDATE
+ rm -f $SNAPSHOTSLOGFILE; touch $SNAPSHOTSLOGFILE
+ rm -f $SNAPSHOTSLASTUPDATE; touch $SNAPSHOTSLASTUPDATE
snapshots_rotate_logfile
OpenPOWER on IntegriCloud