Reworked print function
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user