Skip to content
Myr

Bypass sha1sum/sha1 aliases. Fixes #640.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent a6819b3 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:nvm.sh+2 added-2 removed
602 unmodified lines
603}604605nvm_checksum() {606 if nvm_has "sha1sum"; then607 checksum="$(sha1sum "$1" | command awk '{print $1}')"607 checksum="$(command sha1sum "$1" | command awk '{print $1}')"608 elif nvm_has "sha1"; then609 checksum="$(sha1 -q "$1")"609 checksum="$(command sha1 -q "$1")"610 else611 checksum="$(shasum "$1" | command awk '{print $1}')"612 fi613
929 unmodified lines