From 4c0ce24d4cd59a2f2cb5f82b7918aa779d561ca6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Nov 2015 11:27:32 +0000 Subject: [PATCH] Spaces --- src/freedombone-addsipuser | 6 +++--- src/freedombone-rmsipuser | 4 ++-- src/freedombone-sipfreeext | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freedombone-addsipuser b/src/freedombone-addsipuser index 227f521f..5997e36d 100755 --- a/src/freedombone-addsipuser +++ b/src/freedombone-addsipuser @@ -43,7 +43,7 @@ function show_help { } function sip_user_exists { - for line in $ (cat $CONFIG_FILE) + for line in $(cat $CONFIG_FILE) do if [[ "$line" == "" ]]; then USER_EXISTS="yes" @@ -59,7 +59,7 @@ function update_sip_user { rm -f $NEW_CONFIG_FILE fi touch $NEW_CONFIG_FILE - for line in $ (cat $CONFIG_FILE) + for line in $(cat $CONFIG_FILE) do if [ ! $USER_FOUND ]; then if [[ "$line" == "" ]]; then @@ -88,7 +88,7 @@ function add_sip_user { rm -f $NEW_CONFIG_FILE fi touch $NEW_CONFIG_FILE - for line in $ (cat $CONFIG_FILE) + for line in $(cat $CONFIG_FILE) do if [[ "$line" == '' ]]; then echo "" >> $NEW_CONFIG_FILE diff --git a/src/freedombone-rmsipuser b/src/freedombone-rmsipuser index 632104ef..57418618 100755 --- a/src/freedombone-rmsipuser +++ b/src/freedombone-rmsipuser @@ -41,7 +41,7 @@ function show_help { } function sip_user_exists { - for line in $ (cat $CONFIG_FILE) + for line in $(cat $CONFIG_FILE) do if [[ "$line" == "" ]]; then USER_EXISTS="yes" @@ -57,7 +57,7 @@ function remove_sip_user { rm -f $NEW_CONFIG_FILE fi touch $NEW_CONFIG_FILE - for line in $ (cat $CONFIG_FILE) + for line in $(cat $CONFIG_FILE) do if [ ! $USER_FOUND ]; then if [[ "$line" == "" ]]; then diff --git a/src/freedombone-sipfreeext b/src/freedombone-sipfreeext index 7a206e6d..7a61dab0 100755 --- a/src/freedombone-sipfreeext +++ b/src/freedombone-sipfreeext @@ -34,7 +34,7 @@ CONFIG_FILE=/etc/sipwitch.conf extensions=() # get the used extensions -for line in $ (cat $CONFIG_FILE) +for line in $(cat $CONFIG_FILE) do if [[ "$line" == ""* ]]; then ext=$(echo "$line" | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')