Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
Detect architecture and use that binary on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddorgan committed Sep 13, 2018
1 parent 37b16b8 commit 02e6e9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/utils/keygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ TMPFILE=`mktemp`
export PATH=$PATH:.

if [ ! $(type -P ethkey) ]; then
ETHKEY_URL=`curl -sS "https://vanity-service.parity.io/parity-binaries?version=stable&format=markdown&os=linux&architecture=x86_64" | grep ethkey | awk {'print $5'} | cut -d"(" -f2 | cut -d")" -f1`
ARCH=`arch`
ETHKEY_URL=`curl -sS "https://vanity-service.parity.io/parity-binaries?version=stable&format=markdown&os=linux&architecture=$ARCH" | grep ethkey | awk {'print $5'} | cut -d"(" -f2 | cut -d")" -f1`
wget -q $ETHKEY_URL
chmod +x ethkey
fi
Expand Down

0 comments on commit 02e6e9d

Please sign in to comment.