Don't need echo
This commit is contained in:
parent
974447ab6d
commit
87511b25ce
|
@ -72,7 +72,7 @@ function pass_show_help {
|
|||
}
|
||||
|
||||
function pad_string {
|
||||
echo -n -e "$1" | sed -e :a -e 's/^.\{1,1024\}$/& /;ta'
|
||||
echo -n -e "$1" | sed -e :a -e 's/^.\{1,128\}$/& /;ta'
|
||||
}
|
||||
|
||||
while [[ $# > 1 ]]
|
||||
|
@ -134,7 +134,7 @@ else
|
|||
if [ ! -d ~/.passwords/$CURR_USERNAME ]; then
|
||||
mkdir -p ~/.passwords/$CURR_USERNAME
|
||||
fi
|
||||
echo -n "$(pad_string '${CURR_PASSWORD}')" | gpg -ca --cipher-algo AES256 --passphrase "$MASTER_PASSWORD" > ~/.passwords/$CURR_USERNAME/$CURR_APP
|
||||
pad_string "${CURR_PASSWORD}" | gpg -ca --cipher-algo AES256 --passphrase "$MASTER_PASSWORD" > ~/.passwords/$CURR_USERNAME/$CURR_APP
|
||||
if [ ! -f ~/.passwords/$CURR_USERNAME/$CURR_APP ]; then
|
||||
exit 5
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue