We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36fada6 commit c251c79Copy full SHA for c251c79
src/scripts/unix.sh
@@ -110,11 +110,11 @@ release_lock() {
110
# Function to get the SHA256 hash of a string.
111
get_sha256() {
112
local input=$1
113
- if command -v sha256sum >/dev/null 2>&1; then
+ if command -v sha256sum >/dev/null; then
114
printf '%s' "$input" | sha256sum | cut -d' ' -f1
115
- elif command -v shasum >/dev/null 2>&1; then
+ elif command -v shasum >/dev/null; then
116
printf '%s' "$input" | shasum -a 256 | cut -d' ' -f1
117
- elif command -v openssl >/dev/null 2>&1; then
+ elif command -v openssl >/dev/null; then
118
printf '%s' "$input" | openssl dgst -sha256 | cut -d' ' -f2
119
fi
120
}
0 commit comments