Skip to content

Commit

Permalink
Updated installation Bash script.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Dec 18, 2023
1 parent 646cb0d commit 14006e1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions support/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
git clone https://github.com/nthnn/Qrepo.git
cd Qrepo
chmod -R 777 build.sh
./build.sh
mv dist/qrepo /usr/local/bin/qrepo
rm -rf ../Qrepo
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
sudo apt-get -y install golang > /dev/null 2>&1
sudo apt-get -y install git > /dev/null 2>&1
fi

git clone --quiet --depth 1 https://github.com/nthnn/Qrepo.git && cd Qrepo
chmod -R 777 build.sh && ./build.sh
rm -i /usr/local/bin/qrepo && mv dist/qrepo /usr/local/bin/qrepo && rm -rf ../Qrepo

0 comments on commit 14006e1

Please sign in to comment.