Skip to content

Commit

Permalink
Autoformatted scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Sep 19, 2023
1 parent 932a940 commit 5d4fb43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions tools/build/build-deb.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#>

param(
[Parameter(Mandatory=$False,HelpMessage="The directory where the debian build artifacts will be stored in")]
[Parameter(Mandatory = $False, HelpMessage = "The directory where the debian build artifacts will be stored in")]
[string]$OutputDir
)

Expand All @@ -21,7 +21,7 @@ if ( $appx -eq "" ) {
Write-Error "Ubuntu Preview is not installed"
}

$env:WSL_UTF8=1
$env:WSL_UTF8 = 1

if ( "$(wsl --list --verbose | Select-String Ubuntu-Preview)" -eq "" ) {
ubuntupreview.exe install --root --ui=none
Expand All @@ -32,9 +32,9 @@ if ( "$(wsl --list --verbose | Select-String Ubuntu-Preview)" -eq "" ) {
}

# Write script to run
$scriptWindows=New-TemporaryFile
$scriptWindows = New-TemporaryFile

$scriptLinux=( wsl.exe -d Ubuntu-Preview -- wslpath -ua `'${scriptWindows}`' )
$scriptLinux = ( wsl.exe -d Ubuntu-Preview -- wslpath -ua `'${scriptWindows}`' )
if ( "${LastExitCode}" -ne "0" ) {
Write-Error "could not get build script's linux path"
exit 1
Expand Down Expand Up @@ -83,7 +83,7 @@ cp -f ${build_dir}/wsl-pro-service_* "${OutputDir}"
# Set up output directory
New-Item -Force -ItemType "Directory" -Path "${OutputDir}" | Out-Null

$outputLinux=( wsl.exe -d Ubuntu-Preview -- wslpath -ua `'${OutputDir}`' )
$outputLinux = ( wsl.exe -d Ubuntu-Preview -- wslpath -ua `'${OutputDir}`' )
if ( "${LastExitCode}" -ne "0" ) {
Write-Error "could not get output dir's linux path"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion wsl-pro-service/debian/update-internal-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

# Add repo as private
go env -w GOPRIVATE=github.com/canonical/ubuntu-pro-for-windows
go env -w "GOPRIVATE=github.com/canonical/ubuntu-pro-for-windows"

UP4W_SKIP_INTERNAL_DEPENDENCY_UPDATE=${UP4W_SKIP_INTERNAL_DEPENDENCY_UPDATE:-""}

Expand Down

0 comments on commit 5d4fb43

Please sign in to comment.