ensure args > 0

This commit is contained in:
“ibrahim0814”
2019-08-06 18:02:35 -07:00
parent 43eae61579
commit 2dc29fac45
2 changed files with 5 additions and 6 deletions

View File

@@ -2,10 +2,9 @@
set -eu
if [ -z "$1" ]
if [ $# -eq 0 ]
then
echo "No token supplied"
exit
echo "No arguments supplied"
fi
bash <(curl -s https://codecov.io/bash) -t $1