Skip to content

Commit 8970fc1

Browse files
committed
Use -NoProfile in powershell to (hopefully) suppress output
1 parent e96a516 commit 8970fc1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ before_test:
1717
- g++ -v
1818

1919
test_script:
20+
# https://help.appveyor.com/discussions/problems/5170-progresspreference-not-works-always-shown-preparing-modules-for-first-use-in-stderr
21+
- ps: $ProgressPreference = "SilentlyContinue"
2022
- bundle exec rubocop --version
2123
- bundle exec rubocop -D .
2224
- bundle exec rspec

lib/arduino_ci/arduino_downloader_windows.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ module ArduinoCI
1010
class ArduinoDownloaderWindows < ArduinoDownloader
1111

1212
def powershell(*args)
13-
encoded_cmd = Base64.strict_encode64((args.shelljoin + " | Out-Null").encode('utf-16le'))
14-
system("powershell.exe", "-encodedCommand", encoded_cmd)
13+
encoded_cmd = Base64.strict_encode64(args.shelljoin.encode('utf-16le'))
14+
system("powershell.exe", "-NoProfile", "-encodedCommand", encoded_cmd)
1515
end
1616

1717
def cygwin(*args)

0 commit comments

Comments
 (0)