20 lines
296 B
Plaintext
Executable File
20 lines
296 B
Plaintext
Executable File
#/bin/sh
|
|
|
|
if [ -z "$2" ]; then
|
|
echo "Usage: pass-add Folder/page.de username"
|
|
exit 2
|
|
fi
|
|
|
|
_file="${1}"
|
|
_login="${2}"
|
|
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
|
|
|
|
{
|
|
echo "$_password";
|
|
echo "login: $_login";
|
|
} | pass insert -m "${_file}"
|
|
|
|
echo "======="
|
|
|
|
pass "${_file}"
|