New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[screengrab] strip whitespace from device_ext_storage to get rid of newline on Windows #13065
Conversation
This comment has been minimized.
This comment has been minimized.
9c93d86
to
83d08bb
Compare
This comment has been minimized.
This comment has been minimized.
screengrab/lib/screengrab/runner.rb
Outdated
@@ -136,9 +136,10 @@ def screenshot_file_names_in(output_directory, device_type) | |||
end | |||
|
|||
def determine_external_screenshots_path(device_serial) | |||
device_ext_storage = run_adb_command("adb -s #{device_serial} shell echo \\$EXTERNAL_STORAGE", | |||
device_ext_storage = run_adb_command("adb -s #{device_serial} shell echo \$EXTERNAL_STORAGE", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented this on the other PR that this is based off of but just wanted to put this here to so that this doens't accidentally get merged in but \\
is needed on mac 😊
(This will get addressed once rebased after other PR gets merged in to master)
@janpio Merged your other PR. Did you want to rebase this one now? |
83d08bb
to
ef45acd
Compare
@joshdholtz Rebased and changed PR description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works good! 👍
Hey @janpio 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Congratulations! 🎉 This was released as part of fastlane 2.102.0 🚀 |
On Windows the executed adb command returns the wanted string - and a newline. To make sure this works everywhere, we
.strip
the string before working with it.closes #13061