mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
This script fails when Bash is not the default shell. This fixes it and allows the script to run on a default Ubuntu system, for example.
10 lines
233 B
Bash
Executable File
10 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set -o pipefail
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: $0 update_archive private_key"
|
|
exit 1
|
|
fi
|
|
openssl=/usr/bin/openssl
|
|
$openssl dgst -sha1 -binary < "$1" | $openssl dgst -dss1 -sign "$2" | $openssl enc -base64
|