Comments (7)
Reopen since #48 (comment) is still a solid idea 👍
from opengapps.
I will have a look at it.
I already did shellcheck some parts of the script before, but for some things we currently have no 'cleaner' possibilities available (but that we know we won't have issues, because we know that we e.g. don't have spaces in our own foldernames).
from opengapps.
I'm also looking at this. @mfonville Do you think we can replace printf on line 112 and 113 of add_sourceapp.sh with echo?
from opengapps.
I used there printf because it has no line-endings, but we could also use echo -n I guess.
You'll have to test carefully with the 'cut' though, if nothing breaks.
from opengapps.
echo flags are not portable. All scripts specify the #!/bin/sh shebang, which indicates that the scripts work with /bin/sh, but echo flags are a non-standard feature.
printf is portable and should always be used instead of echo with flags. Rather than replace printf with echo to silence SC2059 warnings, follow the ShellCheck warning and use format specifiers. It is worth noting that there are exceptions and sometimes you want to interpret data as a format string, as shown in the ShellCheck warning: hexToAscii() { printf "\x$1"; } hexToAscii 21
from opengapps.
I also want to integrate shellcheck checking of the update-binary output into the Github status API https://developer.github.com/v3/repos/statuses/ to give feedback if a commit would break the shellscript completely.
from opengapps.
Here's a new log against 9c728b1 in case developers are interested:
https://gist.github.com/anonymous/a73d099195a0b8215e8504151db5071d
shellcheck00.log was generated with the noisiest warnings disabled
SC2016,SC2034,SC2045,SC2153,SC2154,SC2164
shellcheck01.log was generated with all warnings enabled (default)
from opengapps.
Related Issues (20)
- Missing Device Health Services in nano package for Android 6.0 HOT 3
- Lineage OS 19.1 support HOT 4
- Google-Contacts do not work with OpenGApps Pico with LineageOS 18 HOT 2
- Add support for android 12 tv support HOT 1
- Android 12 unsupported Lock pico
- opengapps HOT 1
- Gapps Crash after installation reboot HOT 1
- "Ok Google" not working HOT 2
- ADD Android 12L and Android 13 Versions HOT 26
- How to prebuilt OpenGapps in AOSP 11 build without registering GSF ID HOT 1
- inc.compatibility.sh: Syntax error: redirection unexpected HOT 3
- Android 13 HOT 1
- Android 5.1, arm, tvstock: Failed to build package * HOT 2
- previous Google Play versions HOT 1
- com.google.android.gsf source HOT 9
- Apps missing on LineageOS 18.1
- Question: Is it able to install opengapps without recovery mode?
- Could you please tell the call ui is not updating immediately when calllog history is deleting?
- 2016 ARM 7.1 Open gapps pakage's (kernel 4.4 aosp 7.1.2) setupwizard is broken. HOT 3
- Get back the old gapps packages (2022 and older arm)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengapps.