Check the size of the message before decrypting it.
[rup.git] / deploy.ps1
index 219d4ee..31b5a82 100755 (executable)
@@ -1,6 +1,6 @@
 if ($args.Count -lt 1) {
    $scriptName = [Environment]::GetCommandLineArgs()[1]
-   echo "Usage: $scriptName <destination>"
+   Write-Output "Usage: $scriptName <destination>"
    exit 1
 }
 
@@ -16,6 +16,7 @@ if (!(Test-Path -Path $destination)) {
    New-Item -ItemType directory -Path $destination
 }
 
+strip target/release/rup # To reduce the executable size.
 Copy-Item target/release/rup -Destination $destination
 Copy-Item key.secret -Destination $destination