Allow script to be executed from tox env
Change-Id: I763fca398ffc258f1fa793f92ea6a7e61a562fb7
This commit is contained in:
parent
229d69f4b8
commit
f89081977e
@ -1,7 +1,18 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
function clean_exit(){
|
||||
local error_code="$?"
|
||||
local spawned=$(jobs -p)
|
||||
if [ -n "$spawned" ]; then
|
||||
kill $(jobs -p)
|
||||
fi
|
||||
return $error_code
|
||||
}
|
||||
|
||||
trap "clean_exit" EXIT
|
||||
|
||||
# Switch off SE-Linux
|
||||
setenforce 0
|
||||
|
||||
@ -56,3 +67,7 @@ done
|
||||
echo "SUCCESS"
|
||||
echo "Cluster created!"
|
||||
echo ""
|
||||
|
||||
set -x -e
|
||||
# Yield execution to venv command
|
||||
$*
|
Loading…
x
Reference in New Issue
Block a user