9ca38bd52c
Add encrypt and decrypt scripts Add pubkeys file with desktop and fighter pubkeys
12 lines
281 B
Bash
Executable File
12 lines
281 B
Bash
Executable File
#!/bin/bash
|
|
# Takes one file path as input
|
|
# Outputs to a new file with `.enc` stripped from the end
|
|
|
|
input_file=$1
|
|
file_extension=${input_file##*.}
|
|
file_name=${input_file%%.*}
|
|
output_file="$file_name.enc.$file_extension"
|
|
|
|
sops --decrypt --age ${SOPS_AGE_RECIPIENTS} $input_file
|
|
|