-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
110 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo "Installer loaded ..." | ||
GH_URL='https://github.com/exlinc/mdlr/releases/download' | ||
VERSION='v1.0.0' | ||
echo "Preparing to install mdlr@$VERSION ..." | ||
echo "Creating temp directory ..." | ||
mkdir .mdlr-install | ||
cd .mdlr-install | ||
echo "Temp directory created ..." | ||
|
||
echo "Selecting binary for this system ..." | ||
INSTALL_ROOT='/usr/local/bin/' | ||
MACHINE_TYPE=`uname -m` | ||
ARCH='386' | ||
OS='linux' | ||
if [ ${MACHINE_TYPE} == 'x86_64' ]; then | ||
ARCH='amd64' | ||
fi | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
OS='darwin' | ||
fi | ||
echo "Successfully selected binary for this system" | ||
|
||
echo "Downloading binary ..." | ||
curl ${GH_URL}/${VERSION}/${OS}-${ARCH}-mdlr -o ${OS}-${ARCH}-mdlr | ||
echo "Successfully downloaded binary" | ||
|
||
echo "Installing binary ..." | ||
cp ${OS}-${ARCH}-mdlr ${INSTALL_ROOT}mdlr | ||
chmod +x /usr/local/bin/mdlr | ||
echo "Successfully installed binary" | ||
|
||
echo "Removing temp directories ..." | ||
cd .. | ||
rm -rf .mdlr-install | ||
echo "Removed temp directories" | ||
|
||
echo "Installation complete. Try running 'mdlr --help' to check your setup." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo "Installer loaded ..." | ||
GH_URL='https://github.com/exlinc/mdlr/releases/download' | ||
VERSION='v1.0.0' | ||
echo "Preparing to install mdlr@$VERSION ..." | ||
echo "Creating temp directory ..." | ||
mkdir .mdlr-install | ||
cd .mdlr-install | ||
echo "Temp directory created ..." | ||
|
||
echo "Selecting binary for this system ..." | ||
INSTALL_ROOT='/usr/local/bin/' | ||
MACHINE_TYPE=`uname -m` | ||
ARCH='386' | ||
OS='linux' | ||
if [ ${MACHINE_TYPE} == 'x86_64' ]; then | ||
ARCH='amd64' | ||
fi | ||
|
||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
OS='darwin' | ||
fi | ||
echo "Successfully selected binary for this system" | ||
|
||
echo "Downloading binary ..." | ||
curl ${GH_URL}/${VERSION}/${OS}-${ARCH}-mdlr -o ${OS}-${ARCH}-mdlr | ||
echo "Successfully downloaded binary" | ||
|
||
echo "Preparing to install binary by elevating permissions ..." | ||
sudo echo "Successfully elevated permissions to install binary" | ||
|
||
echo "Installing binary ..." | ||
sudo cp ${OS}-${ARCH}-mdlr ${INSTALL_ROOT}mdlr | ||
sudo chmod +x /usr/local/bin/mdlr | ||
echo "Successfully installed binary" | ||
|
||
echo "Removing temp directories ..." | ||
cd .. | ||
rm -rf .mdlr-install | ||
echo "Removed temp directories" | ||
|
||
echo "Installation complete. Try running 'mdlr --help' to check your setup." |