mirror of
https://github.com/getsolus/packages.git
synced 2025-04-26 04:40:17 +03:00

**Summary** Run the CI checks in the safety catches instead of using a separate implementation.
20 lines
403 B
Bash
Executable file
20 lines
403 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
check_script="$(dirname "$0")/../CI/package_checks.py"
|
|
check_args=(--base=origin/main --fail-on-warnings --results-only)
|
|
|
|
if python3 "${check_script}" "${check_args[@]}"
|
|
then
|
|
exit 0
|
|
fi
|
|
|
|
echo "Package checks failed. Press 'y' to continue, or any other key to abort."
|
|
read -rp "Continue anyway? [yN] " prompt
|
|
|
|
if [[ $prompt = "y" ]]
|
|
then
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi
|