Fix realpath error on macOS 13 (#8707)

This commit is contained in:
Janek Bevendorff 2022-10-29 23:01:37 +02:00 committed by Jonathan White
parent 63b2394ed0
commit a459344078
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01

View File

@ -883,7 +883,6 @@ build() {
fi
fi
OUTPUT_DIR="$(realpath "$OUTPUT_DIR")"
if ! ${build_snapshot} && [ -d "$OUTPUT_DIR" ]; then
exitError "Output dir '${OUTPUT_DIR}' already exists."
fi
@ -892,6 +891,7 @@ build() {
if ! mkdir -p "$OUTPUT_DIR"; then
exitError "Failed to create output directory!"
fi
OUTPUT_DIR="$(realpath "$OUTPUT_DIR")"
if ${build_source_tarball}; then
logInfo "Creating source tarball..."