Skip to content

Commit b61256c

Browse files
committed
Fix Windows path checks
1 parent d22ac57 commit b61256c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/dependency-integrity-check.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ require_tool() {
2626
fi
2727
}
2828

29+
normalize_path() {
30+
printf '%s\n' "${1//\\//}"
31+
}
32+
2933
list_contains() {
3034
local needle="$1"
3135
shift
@@ -210,9 +214,9 @@ else
210214
done
211215

212216
if [[ -z "$root" ]]; then
213-
printf '%s\n' "$unsafe_file" >>"$unsafe_files_without_manifest_file"
217+
normalize_path "$unsafe_file" >>"$unsafe_files_without_manifest_file"
214218
else
215-
printf '%s\n' "$root" >>"$actual_unsafe_roots_file"
219+
normalize_path "$root" >>"$actual_unsafe_roots_file"
216220
fi
217221
done < <(
218222
rg -l '\bunsafe\b' \

0 commit comments

Comments
 (0)