VirtualBox

Changeset 89166 in vbox for trunk


Ignore:
Timestamp:
May 19, 2021 1:25:57 PM (4 years ago)
Author:
vboxsync
Message:

Installer: Linux: attempt to fix VBox version detection on some shells, bugref:9958.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh

    r89164 r89166  
    157157}
    158158
    159 # Detect VirtualBox version info or report error on error.
    160 VBOX_VERSION=$($VBOXMANAGE -v 2>/dev/null | cut -d 'r' -f1)
    161 VBOX_REVISION="r$($VBOXMANAGE -v 2>/dev/null | cut -d 'r' -f2)"
    162 if test -z "$VBOX_VERSION" -o "$VBOX_REVISION" = "r"; then
    163     failure 'Cannot detect VirtualBox version'
    164 fi
     159# Detect VirtualBox version info or report error.
     160VBOX_VERSION="`$VBOXMANAGE -v 2>/dev/null | cut -d r -f1`"
     161[ -n "$VBOX_VERSION" ] || failure 'Cannot detect VirtualBox version number'
     162VBOX_REVISION="r`$VBOXMANAGE -v 2>/dev/null | cut -d r -f2`"
     163[ "$VBOX_REVISION" != "r" ] || failure 'Cannot detect VirtualBox revision number'
    165164
    166165## Output the vboxdrv part of our udev rule.  This is redirected to the right file.
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