-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
Also feel free to push additional fixes straight onto this branch |
Voight Kampff Integration Test Succeeded (Results) |
In reverse order: I pushed commits for 4,2 and 1. I suck at shellscripting so another pair of eyes on those changes might be a good idea. 3 seemed simple but my shellcheck didn't give me an error on that one so it might be best to be taken care of by someone seeing the warning. Edit: after @PureTryOut confirming this to be the best way I changed it to the suggested |
|
Codecov Report
@@ Coverage Diff @@
## dev #3048 +/- ##
=======================================
Coverage 53.11% 53.11%
=======================================
Files 123 123
Lines 11188 11188
=======================================
Hits 5942 5942
Misses 5246 5246 Continue to review full report at Codecov.
|
This replaces save_*_path with usage of the xdg_*_home when handling config files. This means the config folders will not be created unless actually written to. The check for whether a directory needs to be created is handled behind a lock to avoid race conditions
read will mangle backslashes without it. These are not expected characters so not explicitly necessary, but also won't hurt.
Simplify sed-expression to be a single line only removing the need for the offending / and linefeed
Splits the check into to files to be able to quote the expressions in a good way.
This converts the variable APT_PACKAGE_LIST from a string to an array. This is a safer way to handle arguments according to BashFAQ (http://mywiki.wooledge.org/BashFAQ/050)
feecf13
to
9355bbe
Compare
hmm doesn't look like you can add an individual file from outside the included directory. So I've dropped that commit for now. I'll try find some time to do a clean up of the rest of the scripts since most of it is quite straight forward. |
🤦 did a silly on the commit history - will fix it later today |
May be worth looking at #3030 before doing the rest of the scripts. It adds some shellcheck setup which may be useful. I've been planning to go through the scripts folder but have been waiting for that PR to be reviewed. |
Closing in favor of #3090 |
Description
Hit an issue in a Github Actions install of Mycroft-core where it was unable to evaluate a conditional. This fixes that specific issue along with a range of suggestions from shellcheck.
How to test
run
shellcheck dev_setup.sh
install mycroft using
dev_setup.sh
Contributor license agreement signed?