From 5d4fb43c9d0e0f032702bca8d4231873e9527c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edu=20G=C3=B3mez=20Escandell?= Date: Tue, 19 Sep 2023 16:33:59 +0200 Subject: [PATCH] Autoformatted scripts --- tools/build/build-deb.ps1 | 10 +++++----- wsl-pro-service/debian/update-internal-dependencies | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/build/build-deb.ps1 b/tools/build/build-deb.ps1 index 9bdc15438..6e79502af 100644 --- a/tools/build/build-deb.ps1 +++ b/tools/build/build-deb.ps1 @@ -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 ) @@ -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 @@ -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 @@ -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 diff --git a/wsl-pro-service/debian/update-internal-dependencies b/wsl-pro-service/debian/update-internal-dependencies index 59d51f0ff..3b19d2ff8 100755 --- a/wsl-pro-service/debian/update-internal-dependencies +++ b/wsl-pro-service/debian/update-internal-dependencies @@ -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:-""}