Keep package targets explicit and reject existing archive symlinks
This commit is contained in:
@@ -29,4 +29,11 @@ if "$repo_root/scripts/release.sh" --output-dir "$check_root/bundle" > "$check_r
|
||||
exit 1
|
||||
fi
|
||||
grep -q 'Refusing to replace' "$check_root/repeat.log"
|
||||
ln -s "$check_root/untouched" "$check_root/linked.tar.gz"
|
||||
if "$repo_root/scripts/release.sh" --output-dir "$check_root/linked" > "$check_root/linked.log" 2>&1; then
|
||||
printf 'Packaging unexpectedly followed an existing archive symlink.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
grep -q 'Refusing to replace' "$check_root/linked.log"
|
||||
test ! -e "$check_root/untouched"
|
||||
printf 'Archive contents, checksum, extracted CLI and overwrite guard passed.\n'
|
||||
|
||||
Reference in New Issue
Block a user