From d50e8ad1d3f0d3f0a0934f60ded9791246c7b141 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Nov 2015 11:47:26 +0000 Subject: [PATCH] Try without quotes --- src/freedombone-addsipuser | 4 ++-- src/freedombone-rmsipuser | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-addsipuser b/src/freedombone-addsipuser index 5997e36d..eaa95803 100755 --- a/src/freedombone-addsipuser +++ b/src/freedombone-addsipuser @@ -77,7 +77,7 @@ function update_sip_user { USER_FOUND= fi fi - echo "$line" >> $NEW_CONFIG_FILE + echo $line >> $NEW_CONFIG_FILE done mv $NEW_CONFIG_FILE $CONFIG_FILE } @@ -97,7 +97,7 @@ function add_sip_user { echo "$MY_USERNAME $EXTENSION" >> $NEW_CONFIG_FILE echo '' >> $NEW_CONFIG_FILE fi - echo "$line" >> $NEW_CONFIG_FILE + echo $line >> $NEW_CONFIG_FILE done mv $NEW_CONFIG_FILE $CONFIG_FILE usermod -aG sipwitch $MY_USERNAME diff --git a/src/freedombone-rmsipuser b/src/freedombone-rmsipuser index 57418618..6e02c272 100755 --- a/src/freedombone-rmsipuser +++ b/src/freedombone-rmsipuser @@ -65,7 +65,7 @@ function remove_sip_user { fi fi if [ ! $USER_FOUND ]; then - echo "$line" >> $NEW_CONFIG_FILE + echo $line >> $NEW_CONFIG_FILE else if [[ "$line" == '' ]]; then USER_FOUND=