copilot review changes
https://github.com/searxng/searxng/pull/4707#discussion_r2078529275 https://github.com/searxng/searxng/pull/4707#discussion_r2078529280 From Copilot review, manually tested
This commit is contained in:
parent
4314b0e0f2
commit
af5a3dbc32
@ -159,7 +159,7 @@ container.build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container.test() {
|
container.test() {
|
||||||
if ! "$GITHUB_ACTIONS"; then
|
if [ "$GITHUB_ACTIONS" != "true" ]; then
|
||||||
die 1 "This command is intended to be run in GitHub Actions"
|
die 1 "This command is intended to be run in GitHub Actions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ container.test() {
|
|||||||
platform="linux/$arch/$variant"
|
platform="linux/$arch/$variant"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
err_msg "Unsupported architecture; (PARCH=\"$parch\")"
|
err_msg "Unsupported architecture; $parch"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -223,7 +223,7 @@ container.test() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container.push() {
|
container.push() {
|
||||||
if ! "$GITHUB_ACTIONS"; then
|
if [ "$GITHUB_ACTIONS" != "true" ]; then
|
||||||
die 1 "This command is intended to be run in GitHub Actions"
|
die 1 "This command is intended to be run in GitHub Actions"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -252,7 +252,7 @@ container.push() {
|
|||||||
platforms+=("linux/${archs[-1]}/${variants[-1]}")
|
platforms+=("linux/${archs[-1]}/${variants[-1]}")
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
err_msg "Unsupported architecture; (ARCH=\"${arch[-1]}\")"
|
err_msg "Unsupported architecture; $arch"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user