VirtualBox

Changeset 44939 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Mar 6, 2013 8:39:10 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84145
Message:

S10 /bin/sh doesn't grok 'set -o' it turns out, it wants more arguments. So, just send its complaints to /dev/null for now as I'm not aware of any other way to detect that the -x option is active.

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/pkginstall.sh

    r44215 r44939  
    3535    set -x
    3636fi
    37 DEBUGOPT=`set -o | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
     37DEBUGOPT=`set -o 2>/dev/null | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
    3838
    3939# If PKG_INSTALL_ROOT is undefined or NULL, redefine to '/' and carry on.
  • trunk/src/VBox/Installer/solaris/postinstall.sh

    r44215 r44939  
    2020currentzone=`zonename`
    2121if test "$currentzone" = "global"; then
    22     DEBUGOPT=`set -o | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
     22    DEBUGOPT=`set -o 2>/dev/null | sed -ne 's/^xtrace *on$/--sh-trace/p'` # propagate pkgadd -v
    2323    ${PKG_INSTALL_ROOT:=/}/opt/VirtualBox/pkginstall.sh --srv4 ${DEBUGOPT}
    2424    rc=$?
Note: See TracChangeset for help on using the changeset viewer.

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