VirtualBox

Ignore:
Timestamp:
Jan 23, 2020 3:24:24 PM (5 years ago)
Author:
vboxsync
Message:

ValidationKit/linux/testboxscript-service.sh: use vanilla "type" for detecting screen/tmux presence, "type -t" (and actually all other options, too) is a bashism which isn't allowed for files run by /bin/sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh

    r81846 r82844  
    139139        done
    140140        ARGS="$ARGS --pidfile '$PIDFILE'";
    141         if type -t screen > /dev/null; then
    142             su - "${a_USER}" -c "screen -S ${service_name} -d -m ${ARGS} ";
    143         elif type -t tmux > /dev/null; then
     141        if type screen > /dev/null; then
     142            su - "${a_USER}" -c "screen -S ${service_name} -d -m ${ARGS}";
     143        elif type tmux > /dev/null; then
    144144            su - "${a_USER}" -c "tmux new-session -AdD -s ${service_name} ${ARGS}";
    145145        else
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