Skip to content

Commit a581b4a

Browse files
committed
fix
1 parent f0413e6 commit a581b4a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

scripts/release/release-macos-dmg.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@ validate_allowed_path() {
7878
normalized="$(normalize_abs_path "$path")"
7979

8080
case "$normalized" in
81-
"$REPO_ROOT/build" | "$REPO_ROOT/build/"* | /tmp | /tmp/* | /var/folders | /var/folders/*)
81+
/tmp | /var/folders)
82+
echo "$label must not be the temp root directory: $normalized" >&2
83+
exit 1
84+
;;
85+
esac
86+
87+
case "$normalized" in
88+
"$REPO_ROOT/build" | "$REPO_ROOT/build/"* | /tmp/* | /var/folders/*)
8289
printf '%s\n' "$normalized"
8390
;;
8491
*)

0 commit comments

Comments
 (0)