From 5cddb1f42a3dbd2e2c7bcfcc0f83ece3ae89b5a9 Mon Sep 17 00:00:00 2001 From: Roger Luethi Date: Fri, 3 Oct 2014 13:42:05 +0200 Subject: [PATCH] labs: remove user/hostname/date from Windows batch files Remove the user, build host, and build date from the Windows batch files to avoid the appearance of changes in the scripts when there are none. Change-Id: Ic36eb016dd2247c38b8bcbd627de76d443d9c317 --- labs/lib/wbatch/batch_for_windows | 4 ---- labs/lib/wbatch/template-file_header_bat | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/labs/lib/wbatch/batch_for_windows b/labs/lib/wbatch/batch_for_windows index 0d2bbff8..1b8f7540 100644 --- a/labs/lib/wbatch/batch_for_windows +++ b/labs/lib/wbatch/batch_for_windows @@ -124,12 +124,8 @@ function wbatch_sleep { function wbatch_file_header { local product=$1 - local date=$(date -u) sed -e " - s,%USER%,$USER,g; - s,%HOSTNAME%,$HOSTNAME,g; - s,%DATE%,$date,g; s,%PRODUCT%,$product,g; " "$WBATCH_TEMPLATE_DIR/template-file_header_bat" | wbatch_write_stdin } diff --git a/labs/lib/wbatch/template-file_header_bat b/labs/lib/wbatch/template-file_header_bat index ce5c771d..81e8f0c8 100644 --- a/labs/lib/wbatch/template-file_header_bat +++ b/labs/lib/wbatch/template-file_header_bat @@ -7,7 +7,7 @@ SETLOCAL ENABLEDELAYEDEXPANSION ECHO. ECHO OpenStack labs for VirtualBox on Windows -ECHO Generated by osbash (%USER%@%HOSTNAME%, %DATE%) +ECHO Generated by osbash ECHO. ECHO Create %PRODUCT% ECHO.