Merge "labs: remove user/hostname/date from Windows batch files"
This commit is contained in:
commit
390f56918a
@ -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
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user