VirtualBox

Changeset 48972 in vbox for trunk/src/VBox/Installer/linux


Ignore:
Timestamp:
Oct 8, 2013 11:16:21 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89682
Message:

Additions/installer/linux: remove old directories too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/run-inst.sh

    r48954 r48972  
    113113    . ./deffiles
    114114    found=0
     115    for i in "/opt/$PACKAGE-"*; do
     116        test -e "$i" && found=1
     117    done
    115118    for i in $DEFAULT_FILE_NAMES; do
    116         test "$found" = 0 -a -e "$i" && found=1
     119        test "$found" = 0 && test -e "$i" && found=1
    117120    done
    118121    test "$found" = 0 &&
    119         for i in $DEFAULT_VERSIONED_FILE_NAMES-*; do
    120             test "$found" = 0 -a -e "$i" && found=1
     122        for i in $DEFAULT_VERSIONED_FILE_NAMES; do
     123            for j in $i-*; do
     124                test "$found" = 0 && test -e "$j" && found=1
     125            done
    121126        done
    122127    test "$found" = 0 && return 0
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette