Skip to content
Snippets Groups Projects
Commit 22b8af9d authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Be location-agnostic when creating / providing packages

parent f90a55c3
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,11 @@ ...@@ -4,6 +4,11 @@
# set our requirements: # set our requirements:
#Requires -version 5.1 #Requires -version 5.1
# Make sure to run from the directory containing the script itself:
$BaseDir = $(Split-Path $MyInvocation.MyCommand.Path)
Push-Location $BaseDir
$ResourceDir = "..\Resources" $ResourceDir = "..\Resources"
...@@ -103,4 +108,7 @@ Write-Host ...@@ -103,4 +108,7 @@ Write-Host
Write-Host -NoNewline "Location: " Write-Host -NoNewline "Location: "
Highlight "$(RelToAbs $PkgDir)" Highlight "$(RelToAbs $PkgDir)"
Write-Host Write-Host
\ No newline at end of file
# Return to the original location before the script was called:
Pop-Location
\ No newline at end of file
...@@ -3,6 +3,7 @@ Param( ...@@ -3,6 +3,7 @@ Param(
[Parameter(Mandatory=$True)][String] $UpdaterSettings [Parameter(Mandatory=$True)][String] $UpdaterSettings
) )
try { try {
. $UpdaterSettings . $UpdaterSettings
} }
...@@ -13,6 +14,11 @@ catch { ...@@ -13,6 +14,11 @@ catch {
} }
# Make sure to run from the directory containing the script itself:
$BaseDir = $(Split-Path $MyInvocation.MyCommand.Path)
Push-Location $BaseDir
$UpdateBinariesPath = "$($UpdateSourcePath)\Service\Binaries" $UpdateBinariesPath = "$($UpdateSourcePath)\Service\Binaries"
$PackageDir = Get-ChildItem -Directory -Name | $PackageDir = Get-ChildItem -Directory -Name |
...@@ -41,3 +47,5 @@ catch { ...@@ -41,3 +47,5 @@ catch {
Exit Exit
} }
# Return to the original location before the script was called:
Pop-Location
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment