Skip to content

Commit

Permalink
Merge pull request #5 from cypher-network/linux_install_script
Browse files Browse the repository at this point in the history
Point install script to cypher-network repo
  • Loading branch information
0xn3bs committed Dec 31, 2020
2 parents b998e9b + e3f2228 commit d5cd893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
@@ -1,10 +1,10 @@
#!/usr/bin/env bash
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
echo $tmp_dir
version=$(curl https://api.github.com/repos/inkadnb/cypher/releases/latest | grep -Eo "\"tag_name\":\s*\"(.*)\"" | cut -d'"' -f4)
version=$(curl https://api.github.com/repos/cypher-network/cypher/releases/latest | grep -Eo "\"tag_name\":\s*\"(.*)\"" | cut -d'"' -f4)

echo "Installing cypher node $version..."
curl -L https://github.com/inkadnb/cypher/releases/download/$version/cypher.$version.zip > $tmp_dir/cypher.zip
curl -L https://github.com/cypher-network/cypher/releases/download/$version/cypher.$version.zip > $tmp_dir/cypher.zip
unzip -o $tmp_dir/cypher.zip -d $tmp_dir/cypher
mkdir $HOME/.cypher
cp -rf $tmp_dir/cypher $HOME/.cypher/dist
Expand Down

0 comments on commit d5cd893

Please sign in to comment.