mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
test null condition
This commit is contained in:
@@ -4,6 +4,11 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user