added secrets

This commit is contained in:
2021-05-09 00:00:36 +05:30
parent 0f51622ac9
commit 422ab9c1eb
38 changed files with 517 additions and 82 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [ $# -eq 0 ]; then echo "bruh"; exit 1; fi
FILE=$1
if [ $# -eq 2 ]; then
TARGET="$2.age"
elif [ $# -eq 1 ]; then
TARGET="$FILE.age"
else
echo "bruh"
exit 1
fi
rage -o "$TARGET" -r "$(cat ~/.ssh/*.pub)" "$1"