Skip to content
Snippets Groups Projects
Commit 1340a5c4 authored by Matthew McGill's avatar Matthew McGill
Browse files

Prefer executing step as .so over .exe if both are available

Former-commit-id: 4af895e04910642215c30e022f508ed737fbf4bb
parent cdc83017
No related branches found
No related tags found
No related merge requests found
......@@ -772,7 +772,7 @@ do_plugins()
stepname=$i
stepname=$(basename $stepname =on)
stepname=$(basename $stepname =off)
echo $builtin_steps | grep $stepname > /dev/null 2> /dev/null
if [ $? = 0 ]; then
......@@ -791,13 +791,13 @@ do_plugins()
plugin_path=$SECURITY_TRANSFORMS_HOME/plugins_install/
# invoke .exe or .sh as a plugin step.
if [ -x $plugin_path/$stepname.exe ]; then
# invoke .so, .exe, or .sh as a plugin step.
if [ -x $plugin_path/lib$stepname.so ]; then
perform_step $stepname none lib$stepname.so $cloneid $value
elif [ -x $plugin_path/$stepname.exe ]; then
perform_step $stepname none $plugin_path/$stepname.exe $cloneid $value
elif [ -x $plugin_path/$stepname.sh ]; then
perform_step $stepname none $plugin_path/$stepname.sh $cloneid $value
elif [ -x $plugin_path/lib$stepname.so ]; then
perform_step $stepname none lib$stepname.so $cloneid $value
else
echo "*********************************************************"
echo "*********************************************************"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment