get.porter.sh/porter@v1.3.0/tests/integration/testdata/bundles/suppressed-output-example/helpers.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  install() {
     4    echo '{"greeting": "Hello World!"}'
     5  }
     6  
     7  log-error() {
     8    >&2 echo "Error!"
     9  }
    10  
    11  uninstall() {
    12    echo "Farewell World!"
    13  }
    14  
    15  # Call the requested function and pass the arguments as-is
    16  "$@"