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=