1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-07 00:46:15 +01:00
Files
sops/examples/per_file/bin/edit-config-file.sh
2016-03-02 11:57:32 -06:00

16 lines
313 B
Bash
Executable File

#!/usr/bin/env bash
# Exit on first error
set -e
# Localize our filepath
filepath="$1"
if test "$filepath" = ""; then
echo "Expected \`filepath\` but received nothing" 1>&2
echo "Usage: $0 <filepath>" 1>&2
exit 1
fi
# Load our file into SOPS and run our sync script
sops "$filepath"
bin/decrypt-config.sh