Update 2024-12-13 09:08 OpenBSD/amd64-t14
This commit is contained in:
parent
ca92c8badb
commit
0d5b1947e1
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -xe
|
||||
f="$(readlink -f "$1")"
|
||||
vim "$f.gpg" && gpg -qd "$f.gpg" > "$f"
|
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user