mirror of
https://github.com/codecov/codecov-action.git
synced 2026-05-14 11:57:03 +00:00
use default args
This commit is contained in:
@@ -5,18 +5,11 @@ set -eu
|
|||||||
|
|
||||||
echo $INPUT_FILE
|
echo $INPUT_FILE
|
||||||
|
|
||||||
if [ "x$1" == "x" ] || [ "x$2" == "x" ];
|
if [ "x$INPUT_FILE" == "x" ] || [ "x$INPUT_TOKEN" == "x" ];
|
||||||
then
|
then
|
||||||
echo "both variables are null"
|
echo "some variables are null"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ] || [ -z "$2" ]; then
|
|
||||||
echo 'Need 2 parameter are not empty'
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo $1
|
|
||||||
echo $2
|
|
||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user