Comments (6)
For the SC2260 error ("This redirection overrides the output pipe. Use 'tee' to output to both.") on line 154, the execution of find
should have only been redirecting STDERR to /dev/null
.
from swupdate-openbsd.
I have fixed the aforementioned SC2260 error (now properly only redirects STDERR, plus the SC2294 warning ("Double quote to prevent globbing and word splitting.") on line 154.
from swupdate-openbsd.
I double-quoted a few command parameters to mitigate possible whitespace/globbing issues (SC2086 errors).
There are still a few remaining errors/warnings/infos identified, but I think they're all very intentional situations.
from swupdate-openbsd.
It looks like one can make ShellCheck ignore certain errors. In our case, I think ignoring one specific instance in a file is what we want for the aforementioned "intentional situations".
from swupdate-openbsd.
I fixed a few more warnings and disabled the ShellCheck warnings regarding how we're abusing eval
and arrays in unpriv_ftp()
. The only remaining warnings are related to the use of getopt
, which would probably be best resolved by using the getopts
built-in instead.
from swupdate-openbsd.
I migrated options parsing implementation from getopt
to the built-in getopts
, which thankfully resolved the remaining ShellCheck complaints. So, this is done.
from swupdate-openbsd.
Related Issues (18)
- Remove unused packages after updating installed packages HOT 1
- Check for major upgrades to be run with sysupgrade HOT 4
- Using the list (-l) option results in an error from fw_update HOT 1
- Using the download (-d) option doesn't actually download firmware updates HOT 2
- Be smarter about whether a reboot is necessary after running syspatch HOT 1
- Round elapsed time since sypatch was run up to nearest minute to ensure kernel updates are properly detected HOT 1
- Improve detection of syspatch having updated itself HOT 1
- Better handle package updates during post-beta/pre-release window HOT 1
- Add Makefile for installing swupdate HOT 1
- Consider adding a manual page
- is_post_beta_pre_release() should drop privileges before executing ftp HOT 2
- Check for orphaned users & groups HOT 2
- Run sysclean, if installed HOT 1
- Using the download (-d) option doesn't actually download package updates HOT 5
- Warn to restart GUI applications if fonts are updated HOT 1
- Listing of package updates fails during earliest post-beta/pre-release window as it's not using `pkg_add -Dsnap`
- Optionally check for package versions not aligned with upstream when running snapshots
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 swupdate-openbsd.