~carloabelli/bin

374cc99443e9486793b23e27d1e7c00d7bbf5e34 — Carlo Abelli a month ago 5586740 master
encrypt-dir - update terminology
1 files changed, 3 insertions(+), 3 deletions(-)

M encrypt-dir
M encrypt-dir => encrypt-dir +3 -3
@@ 1,11 1,11 @@
#!/bin/sh

if [ "$#" -ne 2 ]; then
    echo "usage: $0 dir recipient" >&2
    echo "usage: $0 dir pub_key" >&2
    exit 1
fi

dir="$1"
recipient="$2"
pub_key="$2"

XZ_DEFAULTS="-T 0" tar -cvJ "$dir" | age -r "$recipient" > "$dir.tar.xz.age"
XZ_DEFAULTS="-T 0" tar -cvJ "$dir" | age -r "$pub_key" > "$dir.tar.xz.age"