Sorry about the breakage. However, I *really* don't like using echo -e; it has a habit of producing weird side-effects later when things are run under a shell you didn't expect. How about this trick to ensure that the same syntax is acceptable in either case?
sed -i "\$s/\$/\n$AutologinParameters/" >> $GDMCustomFile
From IRC:
Sorry about the breakage. However, I *really* don't like using echo -e; it has a habit of producing weird side-effects later when things are run under a shell you didn't expect. How about this trick to ensure that the same syntax is acceptable in either case?
sed -i "\$s/\$ /\n$AutologinPa rameters/ " >> $GDMCustomFile