Giter Site home page Giter Site logo

Comments (4)

lukas2511 avatar lukas2511 commented on August 17, 2024

This is related to #109.

I think it's best trying to get this script somewhat posix compliant as this way it should work in quite a lot of shells.

from dehydrated.

lukas2511 avatar lukas2511 commented on August 17, 2024

Initial zsh compatiblity was added in da2eeda.

Will continue working on compatibility with some other shells.

I think busybox ash (as you suggest) would be a good next target so this script works on embedded systems with openwrt, angstrom, alpine, etc.

from dehydrated.

lukas2511 avatar lukas2511 commented on August 17, 2024

I just had a look at busybox ash and I don't think porting this script is worth it.
Ash really lacks a lot of features, which would require a ton of workarounds....

I'm closing this ticket now since there already is support for at least one other shell (zsh), and I guess it would work in some others too.
If there are (minor) issues with other shells there should be new tickets created instead of adding to this.

from dehydrated.

bittorf avatar bittorf commented on August 17, 2024

i was testing the script under busybox.
i dont see too much problems fixing it for POSIX (so working in every shell):

e.g. these calls (there are a lot of)

csr64="$( <<<"${csr}" openssl req -outform DER | urlbase64)"

can be converted to:

csr64="$( echo "${csr}" | openssl req -outform DER | urlbase64)"

another thing are:

[[ var =~ (foo|bar)$ ]] || ...

which can be written as:

case "$var" in
  *foo|*bar);;
  *) ... ;;
esac

another things are arrays, e.g. ${deploy_args[@]} where we can make a small function

from dehydrated.

Related Issues (20)

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.