Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions get-cli.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
cliVersion=0.1.0

curl -L https://github.com/openhie/package-starter-kit/releases/download/$cliVersion/gocli-linux -o ./goinstant-linux
curl -L https://github.com/openhie/package-starter-kit/releases/download/$cliVersion/gocli-macos -o ./goinstant-macos
curl -L https://github.com/openhie/package-starter-kit/releases/download/$cliVersion/gocli.exe -o ./goinstant.exe
chmod +x ./goinstant-linux
chmod +x ./goinstant-macos
chmod +x ./goinstant.exe
#!/bin/bash

if [ "$1" == "linux" ]; then
curl -L https://github.com/openhie/package-starter-kit/releases/download/latest/gocli-linux -o goinstant
chmod +x goinstant

elif [ "$1" == "macos" ]; then
curl -L https://github.com/openhie/package-starter-kit/releases/download/latest/gocli-macos -o goinstant
chmod +x goinstant

elif [ "$1" == "windows" ]; then
curl -L https://github.com/openhie/package-starter-kit/releases/download/latest/gocli.exe -o goinstant.exe
chmod +x ./goinstant.exe

else
echo 'Usage: ./get-cli.sh "linux|macos|windows"'
fi