mirror of
https://ghproxy.net/https://github.com/wp-cli/wp-cli-bundle.git
synced 2026-03-04 15:20:31 +08:00
11 lines
456 B
Bash
Executable file
11 lines
456 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
actual_checksum=$(curl http://wp-cli.org/packages/phar/wp-cli.phar | md5sum | cut -d ' ' -f 1)
|
|
|
|
echo "expected:" $(curl -s http://wp-cli.org/packages/phar/wp-cli.phar.md5)
|
|
echo "actual: " $actual_checksum
|
|
|
|
actual_checksum=$(curl http://wp-cli.org/packages/phar/wp-cli.phar | sha512sum | cut -d ' ' -f 1)
|
|
|
|
echo "expected SHA-512:" $(curl -s http://wp-cli.org/packages/phar/wp-cli.phar.sha512)
|
|
echo "actual SHA-512: " $actual_checksum
|