From f21c3c425d773364c1c279151b969ebe86a21cea Mon Sep 17 00:00:00 2001 From: cryi Date: Sat, 10 Apr 2021 17:34:39 +0200 Subject: [PATCH] use uname -m instead of -p (portability fix) --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fb6cca5..986ea99 100644 --- a/install.sh +++ b/install.sh @@ -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."