Skip to content
Snippets Groups Projects
Commit 4f778545 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove trailing spaces

parent 87511b25
No related branches found
No related tags found
No related merge requests found
......@@ -127,13 +127,14 @@ if [ ${#CURR_PASSWORD} -eq 0 ]; then
exit 4
else
pass=$(gpg -dq --passphrase "$MASTER_PASSWORD" ~/.passwords/$CURR_USERNAME/$CURR_APP)
echo ${pass}
echo "${pass}" | xargs
fi
else
# store password
if [ ! -d ~/.passwords/$CURR_USERNAME ]; then
mkdir -p ~/.passwords/$CURR_USERNAME
fi
# padding helps to ensure than nothing can be learned from the length of the cyphertext
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment