Git Product home page Git Product logo

Comments (6)

morgant avatar morgant commented on June 3, 2024

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.

morgant avatar morgant commented on June 3, 2024

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.

morgant avatar morgant commented on June 3, 2024

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.

morgant avatar morgant commented on June 3, 2024

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.

morgant avatar morgant commented on June 3, 2024

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.

morgant avatar morgant commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.