Debian Codegraph @

ansible_collections/community/sops/tests/integration/targets/lookup_sops/files/fake-sops-val.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" != "--config" ] || [ "$2" != "/path/to/asdf" ] || [ "$3" != "--decrypt" ] || [ "$(basename "$4")" != "simple.sops.yaml" ] || [ "$5" != "" ]; then
7 echo "Command (fake-sops-val): $*" > /dev/stderr
8 exit 1
9 fi
10 if [ "${AWS_SECRET_ACCESS_KEY}" != "yyy" ]; then
11 echo "AWS_SECRET_ACCESS_KEY is '${AWS_SECRET_ACCESS_KEY}'" > /dev/stderr
12 exit 1
13 fi
14 echo 'fake sops output 2'