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