improve script

This commit is contained in:
DaniPopes 2023-02-25 00:20:42 +01:00
parent 5a1d97a16d
commit 3d4820df4a
No known key found for this signature in database
GPG Key ID: 0F09640DDB7AC692
1 changed files with 7 additions and 1 deletions

View File

@ -9,7 +9,10 @@ DIR="$HOME/bin"
mkdir -p "$DIR"
cd "$DIR"
export PATH="$DIR:$PATH"
[ "$GITHUB_PATH" ] && echo "$DIR" >> "$GITHUB_PATH"
if [ "$GITHUB_PATH" ]; then
echo "$DIR" >> "$GITHUB_PATH"
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
fi
echo "Installing Geth"
PLATFORM="$(uname -s | awk '{print tolower($0)}')"
@ -44,3 +47,6 @@ if command -v solc; then
fi
solc --version
which geth
which solc