X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Feasydialog.sh;h=18cb7c31c96e7506d785859eaabc1ad5ccda8f83;hp=5d70653a8f0d65c581cb515476ddd08e4ea54be8;hb=a116f435ce8b97fdbea9fd25f91517b1fb850881;hpb=1f0d91977b69c4e284de655e958830ead163424c diff --git a/handlers/easydialog.sh b/handlers/easydialog.sh index 5d70653..18cb7c3 100644 --- a/handlers/easydialog.sh +++ b/handlers/easydialog.sh @@ -237,7 +237,12 @@ formDisplay() { done ) | xargs $DIALOG 2> $temp local status=$? - [ $status = 0 ] && REPLY=`cat $temp` + + if [ $status = 0 ]; then + IFS=$'' + REPLY=`cat $temp` + IFS=$' \t\n' + fi rm -f $temp return $status }