Skip to content

Commit

Permalink
Small fix on installation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 19, 2023
1 parent 5741536 commit 36b85ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions support/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/bin/bash

echo "[\033[92m+\033[0m] Installing Qrepo..."

echo "[\033[92m+\033[0m] Checking up Go compiler and git..."
if [ "$(uname)" == "Darwin" ]; then
if [[ "$(uname)" == "Darwin" ]]; then
(brew list golang || brew install golang) > /dev/null 2>&1
(brew list git || brew install git) > /dev/null 2>&1
elif [ "$(uname)" == "Linux" ]; then
elif [[ "$(uname)" == "Linux" ]]; then
sudo apt-get -y install golang > /dev/null 2>&1
sudo apt-get -y install git > /dev/null 2>&1
fi
Expand All @@ -13,7 +15,7 @@ echo "[\033[92m+\033[0m] Cloning source files from GitHub..."
git clone --quiet --depth 1 https://github.com/nthnn/Qrepo.git && cd Qrepo
chmod -R 777 build.sh && ./build.sh

if [ -e "/usr/local/bin/qrepo" ]; then
if [[ -e "/usr/local/bin/qrepo" ]]; then
echo "[\033[91m-\033[0m] Removing previously installed Qrepo..."
rm -rf /usr/local/bin/qrepo
fi
Expand Down

0 comments on commit 36b85ae

Please sign in to comment.