Update 2024-12-13 09:08 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id 2024-12-13 09:08:21 +01:00
parent ca92c8badb
commit 0d5b1947e1
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
set -xe
f="$(readlink -f "$1")"
vim "$f.gpg" && gpg -qd "$f.gpg" > "$f"

View File

@ -34,7 +34,14 @@ done
shift $(($OPTIND - 1))
# print usage, if no file/dir argument is provided
[ -z "$1" ] && usage
[ -z "$1" ] \
&& echo "ERROR: No files/dirs argument provided." \
&& usage
# print usage, if no option argument was provided
[ "$OPTIND" == "1" ] \
&& echo "ERROR: No option provided (needs -d, or -e and -k)" \
&& usage
### handle encryption (set by -e)
if [ "$encrypt" -eq "1" ]