VirtualBox

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


Ignore:
Timestamp:
Oct 7, 2015 5:54:15 PM (9 years ago)
Author:
vboxsync
Message:

Installer/linux: correct getting the script path and admit that we fail on trailing new-lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/postinst-common.sh

    r58090 r58108  
    2222# (e.g. /opt/VirtualBox, /usr/lib/VirtualBox, the build output directory).
    2323
    24 # This is GNU-specific, sorry Solaris.
    25 MY_PATH="$(dirname $(readlink -f -- "${0}"))/"
     24# This is GNU-specific, sorry Solaris.  It fails on directories ending in '\n'.
     25MY_PATH="$(dirname $(readlink -f -- "${0}"))"
    2626cd "${MY_PATH}"
    2727. "./routines.sh"
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