Fix realpath error on macOS 13 (#8707)

This commit is contained in:
Janek Bevendorff
2022-10-29 23:01:37 +02:00
committed by GitHub
parent 6d23a3bd2c
commit 188fff1488

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..."