Add opt-in Plasma fingerprint workaround
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
controller=$1
|
||||
payload_config=$2
|
||||
|
||||
bash -n "$controller"
|
||||
"$controller" --help | grep -q '^ .* enable \[--rpm PATH\] \[--force\] \[--yes\]$'
|
||||
|
||||
if "$controller" unknown-command >/dev/null 2>&1; then
|
||||
printf 'Unknown command unexpectedly succeeded.\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
payload_url=
|
||||
payload_sha256=
|
||||
# shellcheck source=/dev/null
|
||||
source "$payload_config"
|
||||
[[ $payload_url == https://*/*.rpm ]]
|
||||
[[ $payload_sha256 =~ ^[[:xdigit:]]{64}$ ]]
|
||||
|
||||
printf 'Controller tests passed.\n'
|
||||
Reference in New Issue
Block a user