Changeset 35627


Ignore:
Timestamp:
2021-10-16T15:14:57+13:00 (7 weeks ago)
Author:
davidb
Message:

In newer Linux distribution having double quotes in the toexec variable (triggered by introducing the use of JAVACFLAGS) resulted in an error when trying to execute . As there is no shell formed by the line, there is no interpretation of the line (which would normally resolve the double quotes). Solution here is to run toexec through 'bash -c'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/bin/rk

    r35622 r35627  
    9090#show the command to be executed
    9191if [ "$show_cmd" == "true" ]; then
     92        echo ""
     93        echo export JAVACFLAGS=$JAVACFLAGS
     94    echo ""
    9295    echo $toexec
     96        echo ""
    9397#execute
    9498else
    9599    show_title | tee ${rk_name}.out
    96     $toexec 2>&1 | tee -a ${rk_name}.out
     100    bash -c "$toexec" 2>&1 | tee -a ${rk_name}.out
    97101fi
    98102
Note: See TracChangeset for help on using the changeset viewer.