From: Marc G. <gr...@at...> - 2007-10-10 18:58:57
|
On Wednesday 10 October 2007 19:06:35 Gordan Bobic wrote: > Below is a patch to fix this problem. > Without the first part being in double quotes, empty strings break the > != comparison. > With the first part being in double quotes, spaces break things. > > So we do two comparisons instead of one. There's probably a neat way to > combine this, but this works. :-) Great thanks very much. We'll test it and it'll be in the next release. Regards Marc. > > Gordan > > /opt/atix/comoonics-bootimage/boot-scripts/etc/chroot-lib.sh > > --- chroot-lib.sh 2007-10-10 18:01:33.000000000 +0100 > +++ chroot-lib.sh.new 2007-10-10 18:01:50.000000000 +0100 > @@ -330,6 +330,7 @@ > # FIXME: > # if [ "${line:0:1}" != '#' ]; then does not work. Don't know > WHY the shit!! > # > + if [ "${line:0:1}" ]; then > if [ ${line:0:1} != '#' ]; then > if [ ! -e "$line" ] && [ "${line:0:7}" = '@perlcc' ]; then > # take next as filename and compile > @@ -392,6 +393,7 @@ > get_dependent_files $filename > fi > fi > + fi > done <$filename > } > #************ get_all_files_dependent > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Open-sharedroot-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/open-sharedroot-devel -- Gruss / Regards, Marc Grimme Phone: +49-89 452 3538-14 http://www.atix.de/ http://www.open-sharedroot.org/ ** Visit us at LinuxWorld Conference & Expo 31.10. - 01.11.2007 in Jaarbeurs Utrecht - The Netherlands ATIX stand: Hall 9 / B 005 ** ATIX Informationstechnologie und Consulting AG Einsteinstr. 10 85716 Unterschleissheim Deutschland/Germany Phone: +49-89 452 3538-0 Fax: +49-89 990 1766-0 Registergericht: Amtsgericht Muenchen Registernummer: HRB 168930 USt.-Id.: DE209485962 Vorstand: Marc Grimme, Mark Hlawatschek, Thomas Merz (Vors.) Vorsitzender des Aufsichtsrats: Dr. Martin Buss |