Better if commands

This commit is contained in:
Tiago Conceição
2022-10-23 04:54:29 +01:00
parent 9276735203
commit a05e6b536c
3 changed files with 14 additions and 16 deletions
+3 -2
View File
@@ -12,6 +12,8 @@ cd "$(dirname "$0")"
cd ..
[ ! -d "UVtools.Core" ] && echo "UVtools.Core not found!" && exit -1
testcmd() { command -v "$1" &> /dev/null; }
#runtime=$1
for runtime in $@; do :; done # Get last argument
rootDir="$(pwd)"
@@ -61,8 +63,7 @@ done
#echo "Zip package: $zipPackage"
# Checks
if ! command -v dotnet &> /dev/null
then
if ! testcmd dotnet; then
echo "Error: dotnet not installed, please install .NET SDK $netVersion.x, dotnet-sdk or dotnet-sdk-$netVersion"
exit
fi