Debian Codegraph @

ansible_collections/community/sops/tests/integration/targets/lookup_sops/files/fake-sops.sh

raw symbols SCIP
1 #!/bin/sh
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 if [ "$1" != "--enable-local-keyservice=false" ] || [ "$2" != "--decrypt" ] || [ "$(basename "$3")" != "simple.sops.yaml" ] || [ "$4" != "" ]; then
7 echo "Command (fake-sops): $*" > /dev/stderr
8 exit 1
9 fi
10 if [ "${AWS_ACCESS_KEY_ID}" != "xxx" ]; then
11 echo "AWS_ACCESS_KEY_ID is '${AWS_ACCESS_KEY_ID}'" > /dev/stderr
12 exit 1
13 fi
14 echo 'fake sops output'