Parse --with-packages and --with-sdk correctly (#18403)

This commit is contained in:
Viktor Hofer 2024-01-26 10:56:31 +01:00 committed by GitHub
parent 0644f48e14
commit 54bf3a61c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -142,7 +142,7 @@ while [[ $# > 0 ]]; do
-use-mono-runtime)
properties="$properties /p:SourceBuildUseMonoRuntime=true"
;;
--with-packages)
-with-packages)
CUSTOM_PACKAGES_DIR="$(cd -P "$2" && pwd)"
if [ ! -d "$CUSTOM_PACKAGES_DIR" ]; then
echo "Custom prviously built packages directory '$CUSTOM_PACKAGES_DIR' does not exist"
@ -150,7 +150,7 @@ while [[ $# > 0 ]]; do
fi
shift
;;
--with-sdk)
-with-sdk)
CUSTOM_SDK_DIR="$(cd -P "$2" && pwd)"
if [ ! -d "$CUSTOM_SDK_DIR" ]; then
echo "Custom SDK directory '$CUSTOM_SDK_DIR' does not exist"