Changeset 14117 in hybrid for branches/releng-11/nanobsd


Ignore:
Timestamp:
Apr 10, 2018, 8:44:23 PM (7 years ago)
Author:
rick
Message:

Fix failing refresh if file is symlink

Running refresh twice results in odd behaviour since the second time the
directory has been converted to a link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/tools/package-build.sh

    r14116 r14117  
    5353
    5454        # Clean old stuff
    55         if [ -d "/usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE" ]; then
    56           rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE
    57         fi
    58 
    59         if [ -d "/usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS" ]; then
    60           rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS
    61         fi
     55        rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_MAKE_CONF_FILE
     56        rm -Rf /usr/local/etc/poudriere.d/$POUDRIERE_OPTIONS
    6257
    6358
Note: See TracChangeset for help on using the changeset viewer.