Changeset d601cfc for CLFS/master.sh


Ignore:
Timestamp:
03/10/2017 08:23:57 PM (7 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
2.4, ablfs-more, legacy, trunk
Children:
abc276c
Parents:
3d24e5b
Message:

Fix logic for copying fstab. That stupid bug wanted to copy fstab when
FSTAB was empty!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    r3d24e5b rd601cfc  
    379379      *how-to-view*) continue  ;;
    380380      *whatnext*) continue     ;;
    381       *fstab)   [[ ! -z ${FSTAB} ]] &&
     381      *fstab)   [[ -z "${FSTAB}" ]] ||
    382382                [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
    383383                cp ${FSTAB} $BUILDDIR/sources/fstab ;;
     
    500500        *devices)         wrt_RunAsRoot "${file}"    ;;
    501501        *fstab)
    502            if [[ -n "$FSTAB" ]]; then
     502           if [[ -n "${FSTAB}" ]]; then
    503503               LUSER_wrt_CopyFstab
    504504           else
     
    735735
    736736    case $this_script in
    737       *udev)     continue ;; # This is not a script but a commentary, we want udev-rules
     737      *udev)     continue ;; # This is not a script but a comment, we want udev-rules
    738738      *console*) continue ;; # Use the files that came with the bootscripts
    739739# fstab is now here (for 3.x.y)
    740       *fstab)  [[ ! -z ${FSTAB} ]] &&
     740      *fstab)  [[ -z "${FSTAB}" ]] ||
    741741               [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
    742742               cp ${FSTAB} $BUILDDIR/sources/fstab ;;
     
    913913    case $this_script in
    914914      *grub | *aboot | *colo | *silo | *arcload | *lilo | *reboot* )  continue ;;
    915       *fstab)  [[ ! -z ${FSTAB} ]] &&
     915      *fstab)  [[ -z "${FSTAB}" ]] ||
    916916               [[ ${FSTAB} == $BUILDDIR/sources/fstab ]] ||
    917917               cp ${FSTAB} $BUILDDIR/sources/fstab ;;
Note: See TracChangeset for help on using the changeset viewer.