mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Del openbox
This commit is contained in:
parent
71ddd0ad2f
commit
351fd863ac
11 changed files with 11 additions and 876 deletions
10
bin/gpe
10
bin/gpe
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue