github.com/StackExchange/blackbox/v2@v2.0.1-0.20220331193400-d84e904973ab/bin/blackbox_decrypt_all_files (about)

     1  #!/usr/bin/env bash
     2  
     3  #
     4  # blackbox_decrypt_all_files -- Decrypt all blackbox files (INTERACTIVE).
     5  #
     6  
     7  # Usage:
     8  #   blackbox_decrypt_all_files [GROUP]
     9  #       GROUP is optional.  If supplied, the resulting files
    10  #       are chgrp'ed to that group.
    11  
    12  # Since this is often run in a security-critical situation, we
    13  # force /usr/bin and /bin to the front of the PATH.
    14  export PATH=/usr/bin:/bin:"$PATH"
    15  
    16  set -e
    17  source "${0%/*}/_blackbox_common.sh"
    18  
    19  gpg_agent_notice
    20  exec blackbox_postdeploy "$@"