Reworked print function

This commit is contained in:
Jon-William Lewis
2016-01-25 21:00:43 -06:00
parent 8fc731aaa0
commit 2d8db83c3c
6 changed files with 29 additions and 95 deletions

View File

@@ -3,7 +3,7 @@ function encrypt(){
# output file, "$NOTE", will encrypt $TARGET to $NOTE against $PUBKEY's private
# GPG key.
gpg -r "$PUBKEY" -o "$NOTE" -e "$TARGET"
gpg -r "$PUBKEY" -o "$NOTE" -e "$TARGET"
}
@@ -12,7 +12,5 @@ function decrypt(){
# output file, "$NOTE", will decrpyt $TARGET to $NOTE against $PUBKEY's private
# GPG key.
if [ ! -d "$ROOT_DIR"/tmp ]; then mkdir "$ROOT_DIR"/tmp; fi
TARGET="$TMP_DIR/$RANDOM"
gpg -d "$NOTE" > "$TARGET"
gpg -d "$NOTE"
}