mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Better if commands
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user