Search code examples
bashgitlab-cipipelinegitlab-ci-runner

How input argument to require command (bash)?


I am writing pipeline script (gitlab CI/CD).

A bit of my script

  script:
    - npm install
    - b4a configure accountkey

But command b4a configure accountkey require input key

Part doc of CLI b4a

I know that is trivial question, but really I don't know how write my script (I have pure knowledge of bash).

I tried something b4a configure accountkey | $BACKAPP or - b4a configure accountkey | read -s $BACKAPP but it didn't work for me.

I couldn't find answer now I can input my arg to the command. Sorry for so stupid question :(


Solution

  • Thank you Gerhard and ErikMD!

    Both options work for me!

    echo keynumber|b4a configure accountkey
    
    'b4a configure accountkey <<<"$BACKAPP"'