Debian Codegraph @

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