Update 2023-05-02 20:23 OpenBSD/amd64-x13
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
#/bin/sh
|
||||
|
||||
if [ -z "$2" ]; then
|
||||
echo "Usage: pass-add Folder/page.de username"
|
||||
exit 2
|
||||
fi
|
||||
echo -n "Internet/...: "
|
||||
read
|
||||
_file="Internet/$REPLY"
|
||||
|
||||
echo -n "Username: "
|
||||
read
|
||||
_login="$REPLY"
|
||||
|
||||
_file="${1}"
|
||||
_login="${2}"
|
||||
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
|
||||
|
||||
{
|
||||
echo "$_password";
|
||||
echo "login: $_login";
|
||||
echo "Username: $_login";
|
||||
} | pass insert -m "${_file}"
|
||||
|
||||
echo "======="
|
||||
|
||||
Reference in New Issue
Block a user