Changeset 89158 in vbox for trunk/src/VBox/Installer/linux
- Timestamp:
- May 19, 2021 11:53:06 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/linux/vboxdrv.sh
r89157 r89158 158 158 159 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 echo "diagnostics: cut: " $(which cut) $([ -x "$(which cut)"] && echo 1)163 echo "diagnostics: VBOXMANAGE: "$VBOXMANAGE $([ -x "$VBOXMANAGE" ] && echo 1)164 echo "diagnostics: VBOX_VERSION =".$VBOX_VERSION.165 echo "diagnostics: VBOX_REVISION =".$VBOX_REVISION.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 echo diagnostics: cut: $(which cut) $([ -x $(which cut) ] && echo 1) 163 echo diagnostics: VBOXMANAGE: $VBOXMANAGE $([ -x "$VBOXMANAGE" ] && echo 1) 164 echo diagnostics: VBOX_VERSION = .$VBOX_VERSION. 165 echo diagnostics: VBOX_REVISION = .$VBOX_REVISION. 166 166 if test -z "$VBOX_VERSION" -o "$VBOX_REVISION" = "r"; then 167 167 failure 'Cannot detect VirtualBox version'
Note:
See TracChangeset
for help on using the changeset viewer.