Skip to content

Commit

Permalink
Update functions.ps1
Browse files Browse the repository at this point in the history
fix vars asignment.
  • Loading branch information
wildone authored Jul 15, 2021
1 parent a24c6e3 commit 617f158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ Function Main
if(!(Test-Path -Path ${DOCKER_LOGS_FOLDER} )){
New-Item -ItemType directory -Path ${DOCKER_LOGS_FOLDER} | Out-Null
}
$script:LOG_PATH = (Resolve-Path -Path ${DOCKER_LOGS_FOLDER} -Relative)
$script:DOCKER_LOGS_FOLDER = (Resolve-Path -Path ${DOCKER_LOGS_FOLDER} -Relative)

# ensure log path exist
if ([string]::IsNullOrEmpty(${DRIVER_FOLDER})) {
Expand All @@ -305,21 +305,21 @@ Function Main
if(!(Test-Path -Path ${DRIVER_FOLDER} )){
New-Item -ItemType directory -Path ${DRIVER_FOLDER} | Out-Null
}
$script:LOG_PATH = (Resolve-Path -Path ${DRIVER_FOLDER} -Relative)
$script:DRIVER_FOLDER = (Resolve-Path -Path ${DRIVER_FOLDER} -Relative)


$script:LOG_PATH = $LOG_PATH
$script:DOCKER_LOGS_FOLDER = $DOCKER_LOGS_FOLDER
$script:DRIVER_FOLDER = $DRIVER_FOLDER

Write-Output "${LOG_PATH}"
Write-Output "LOG_PATH: ${LOG_PATH}"

# set logfile name
$script:LOG_FILENAME_DATE = "$(DateStamp)"
$script:LOG_FILENAME = "${LOG_PEFIX}-${DOCKER_NETWORK_NAME}-${LOG_FILENAME_DATE}${LOG_SUFFIX}"
$script:LOG_FILE = "${LOG_PATH}\${LOG_FILENAME}"

Write-Output "${LOG_FILE}"
Write-Output "LOG_FILE: ${LOG_FILE}"

$script:LOCAL_IP = (Get-LocalIP)

Expand Down

0 comments on commit 617f158

Please sign in to comment.