From: Gordan B. <go...@bo...> - 2007-10-10 17:06:51
|
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. :-) 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 |