added secrets
This commit is contained in:
12
overlays/customscripts/src/agecrypt
Normal file
12
overlays/customscripts/src/agecrypt
Normal 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"
|
Reference in New Issue
Block a user