From cf9de8ff465c3b86fb7d67c4a0a70bcb1bb34a9b Mon Sep 17 00:00:00 2001 From: Sung Won Cho Date: Fri, 7 Apr 2017 17:02:05 +1000 Subject: [PATCH] Fix filename --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 703bb3fb..46c062a3 100755 --- a/install.sh +++ b/install.sh @@ -17,14 +17,14 @@ install() { if [ "$UNAME" = "Darwin" ]; then OSX_ARCH=$(uname -m) if [ "${OSX_ARCH}" = "x86_64" ]; then - PLATFORM="darwin-amd64" + PLATFORM="darwin_amd64" else not_supported fi elif [ "$UNAME" = "Linux" ]; then LINUX_ARCH=$(uname -m) if [ "${LINUX_ARCH}" = "x86_64" ]; then - PLATFORM="linux-amd64" + PLATFORM="linux_amd64" else not_supported fi @@ -38,8 +38,8 @@ install() { echo "Error fetching. Please try again." exit 1 else - echo "Download Dnote binary from curl https://github.com/dnote-io/cli/releases/download/$LATEST/dnote-$PLATFORM to $DEST" - if curl -sL https://github.com/dnote-io/cli/releases/download/$LATEST/dnote-$PLATFORM -o $DEST; then + echo "Download Dnote binary from curl https://github.com/dnote-io/cli/releases/download/$LATEST/dnote_$PLATFORM to $DEST" + if curl -sL https://github.com/dnote-io/cli/releases/download/$LATEST/dnote_$PLATFORM -o $DEST; then chmod +x $DEST echo "Dnote installation was successful" else