I am writing a script to setup profanity (an xmpp client) for me, it actually doesn't do much but add my account to the rc file (as I don't want to store my account in a public repo). I have this:
Code:
#!/bin/sh
echo "setting up profanity..."
echo "enter your account: "
read account
cat $HOME/.config/profanity/profrc | sed "s/account=/account=$account/" > tmp
echo "profanity setup"
but this inputs the varibale twice, ie
Code:
account=user@host.orguser@host.org
Why is it inputting twice?