Skip to content

Commit

Permalink
use uname -m instead of -p (portability fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryi committed Apr 10, 2021
1 parent df24226 commit f21c3c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LATEST=$(curl -sL https://api.github.com/repos/cryon-io/eli/releases/latest | gr

TMP_NAME="/tmp/$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"

wget "https://github.com/cryon-io/eli/releases/download/$LATEST/eli-unix-$(uname -p)" -O "$TMP_NAME" &&
wget "https://github.com/cryon-io/eli/releases/download/$LATEST/eli-unix-$(uname -m)" -O "$TMP_NAME" &&
mv "$TMP_NAME" /usr/sbin/eli &&
chmod +x /usr/sbin/eli &&
echo "eli $LATEST for $(uname -p) successfuly installed."
echo "eli $LATEST for $(uname -m) successfuly installed."

0 comments on commit f21c3c4

Please sign in to comment.