Commit c9154d0e authored by Bram Daams's avatar Bram Daams
Browse files

shell wrapper

parent 1972fadf
Pipeline #36609 passed with stage
in 39 seconds
#!/bin/bash
command="$2"
date >> /tmp/test
echo "command: " "$command" >> /tmp/test
if grep -q 'JOB_ID' <<< "$command"
then
echo "do something with sch" >> /tmp/test
else
echo "just run the command, no stuff with sch" >> /tmp/test
fi
eval "$command"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment