Del openbox

This commit is contained in:
Smirnov Alexandr 2021-03-23 13:39:30 +02:00
parent 71ddd0ad2f
commit 351fd863ac
11 changed files with 11 additions and 876 deletions

10
bin/gpe
View file

@ -6,19 +6,15 @@ function encrypt() {
}
function decrypt() {
local fn="$1"
if [ ${fn: -4} == ".asc" ]
then
gpg -d -o ${fn%%.asc} $@
then gpg -d -o ${fn%%.asc} $@
elif [ ${fn: -4} == ".gpg" ]
then
gpg -d -o ${fn%%.gpg} $@
then gpg -d -o ${fn%%.gpg} $@
fi
}
## Logic
case "$1" in
enc|e) shift; encrypt $@ ;;
dec|d) shift; decrypt $@ ;;
*) echo "Error." ;;
*) echo "Error." ;;
esac