Files
codecov-action/entrypoint.sh
“ibrahim0814” 6fdf86f06b test null condition
2019-08-07 11:11:16 -07:00

27 lines
413 B
Bash

#!/bin/bash
set -eu
if [ "x$1" == "x" ] || [ "x$2" == "x" ];
then
echo "both variables are null"
fi
if [ -z "$1" ] || [ -z "$2" ]; then
echo 'Need 2 parameter are not empty'
fi
echo $INPUT_FILE
echo $1
echo $2
if [ $# -eq 0 ]
then
bash <(curl -s https://codecov.io/bash)
else
bash <(curl -s https://codecov.io/bash) -t $1
fi