Some checks failed
Build and Push Docker Images / build (src/LiquidCode.Tester.Gateway/Dockerfile, git.nullptr.top/liquidcode/liquidcode-tester-gateway-roman, gateway) (push) Successful in 1m12s
Build and Push Docker Images / build (src/LiquidCode.Tester.Worker/Dockerfile, git.nullptr.top/liquidcode/liquidcode-tester-worker-roman, worker) (push) Has been cancelled
30 lines
381 B
Bash
30 lines
381 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ "$1" = "" ]
|
|
then
|
|
echo "First parameter is empty"
|
|
read
|
|
fi
|
|
|
|
if [ "$2" = "" ]
|
|
then
|
|
echo "Second parameter is empty"
|
|
read
|
|
fi
|
|
|
|
rm -f "$2"
|
|
|
|
eval $1 > $2
|
|
|
|
if [ "$?" -ne "0" ]
|
|
then
|
|
echo "Executed $1, but it returns non-zero exit code"
|
|
read
|
|
fi
|
|
|
|
if [ ! -f "$2" ]
|
|
then
|
|
echo "Executed ""$1" > "$2"", but it didn't create file"
|
|
read
|
|
fi
|