some tools for internal use
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/env sh
|
|
if test $# -le 0; then
|
|
printf "file parameter missing."
|
|
else
|
|
fn="$1"
|
|
fp=$(printf "$fn" |rev|cut -d. -f2-|rev)
|
|
fe=$(printf "$fn" |rev|cut -d. -f1|rev)
|
|
fo="${fe}_dec.${fe}"
|
|
fi
|
|
pw=$(gopass vebit-vorstand/pdf-pass|head -1)
|
|
pdftk "${fn}" input_pw "${pw}" output "${fo}"
|
|
e=$?
|
|
if test -f "${fo}" ; then
|
|
ls -l "$fo"
|
|
else
|
|
printf "error decrypting, errno: ${e}"
|
|
fi
|