From f3ec211edeff9741c5dc60a395fe3139bd485bb2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 12 Sep 2016 11:15:11 +0100 Subject: [PATCH] Initial username can include spaces --- src/freedombone-image-customise | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 4fd74d22..3a0564f6 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -638,8 +638,8 @@ function mesh_client_startup_applications { echo ' exit 0' >> $START_DESKTOP echo 'fi' >> $START_DESKTOP echo '' >> $START_DESKTOP - echo 'INITIAL_TOX_USERNAME=' >> $START_DESKTOP - echo 'while [ ! $INITIAL_TOX_USERNAME ]; do' >> $START_DESKTOP + echo 'INITIAL_TOX_USERNAME=""' >> $START_DESKTOP + echo 'while [ ${#INITIAL_TOX_USERNAME} -eq 0 ]; do' >> $START_DESKTOP echo ' data=$(tempfile 2>/dev/null)' >> $START_DESKTOP echo ' trap "rm -f $data" 0 1 2 5 15' >> $START_DESKTOP echo -n " dialog --title \"${MESH_TITLE}\" " >> $START_DESKTOP @@ -650,9 +650,6 @@ function mesh_client_startup_applications { echo ' case $sel in' >> $START_DESKTOP echo ' 0)' >> $START_DESKTOP echo ' INITIAL_TOX_USERNAME=$(<$data)' >> $START_DESKTOP - echo ' if [ ${#INITIAL_TOX_USERNAME} -lt 1 ]; then' >> $START_DESKTOP - echo ' INITIAL_TOX_USERNAME=' >> $START_DESKTOP - echo ' fi' >> $START_DESKTOP echo ' ;;' >> $START_DESKTOP echo ' esac' >> $START_DESKTOP echo 'done' >> $START_DESKTOP