Corrected issues arising from "$BASE_DIR" vs "$ROOT_DIR"
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
function encrypt(){
|
||||
# This function, given a recipient, $PUBKEY; a file to encrypt, $TARGET; and an
|
||||
# output file, "$NOTE", will encrypt $TARGET to $NOTE against $PUBKEY's private
|
||||
# This function, given a recipient, $PUBKEY; a file to encrypt, $TMP_NOTE; and an
|
||||
# output file, "$NOTE", will encrypt $TMP_NOTE to $NOTE against $PUBKEY's private
|
||||
# GPG key.
|
||||
|
||||
gpg -r "$PUBKEY" -o "$NOTE" -e "$TARGET"
|
||||
gpg -r "$PUBKEY" -o "$NOTE" -e "$TMP_NOTE"
|
||||
|
||||
}
|
||||
|
||||
function decrypt(){
|
||||
# This function, given a recipient, $PUBKEY; a file to decrypt, $TARGET; and an
|
||||
# output file, "$NOTE", will decrpyt $TARGET to $NOTE against $PUBKEY's private
|
||||
# This function, given a recipient, $PUBKEY; a file to decrypt, $TMP_NOTE; and an
|
||||
# output file, "$NOTE", will decrpyt $TMP_NOTE to $NOTE against $PUBKEY's private
|
||||
# GPG key.
|
||||
echo "$NOTE"; pause
|
||||
gpg -d "$NOTE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user