-
Notifications
You must be signed in to change notification settings - Fork 29
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
checks: update assignment of platform URLs var #94
Conversation
This reverts commit 84bbd67.
I haven't tested this (which got us in trouble the first time), so let's hold off on merging until we have confidence in this change. |
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.
LGTM
I'm not a bash expert, but instead of disable shellcheck, here
we could actually populate the
or
|
I tried both methods of assigning the array; the first suggestion introduced an error with Shellcheck related to SC2207 and the second suggestion did not trigger any error. However, if I remove the comment to disable the SC2048 check on line 16-17, the error returns regardless of how the array is originally assigned. |
What about
Running |
This looks promising...I was heading in this direction but lack of time has kept me from pursuing this fully. |
This updates the script to be more ShellCheck compliant around the assignment of the UPDATE_PLATFORM_URLS variable and the check to see if the varible is empty. The existing functionality remains unchanged. Thanks to @alcir for the suggested changes! Closes: fedora-iot#93
⬆️ Pushed an update yesterday with the suggestions from @alcir; I did some light testing on a Fedora IoT system and verified it worked with the happy path and unhappy path. |
@miabbott so the bats_test is failing, is that a problem or does the test need to be adjusted or is it unrelated to this? Other than that is this ready to review/merge? |
@nullr0ute BATS is failing like this:
Looking at the history of that test on other PRs, it is failing similarly, so I believe it is unrelated to this change. I believe this is ready for review + merge |
This updates the script to be more ShellCheck compliant around the
assignment of the UPDATE_PLATFORM_URLS variable and the check to see
if the varible is empty. The existing functionality remains unchanged.
Thanks to @alcir for the suggested changes!
Closes: #93