mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-10 04:12:11 +02:00
Removed some unnecessary quotes from install.sh
This commit is contained in:
parent
e222b5232e
commit
51aaa2ec57
|
@ -6,13 +6,13 @@ DESTINATION_DIR=/usr/local/bin
|
||||||
|
|
||||||
# Test if /usr/local/bin exists. If not fallback to /usr/bin
|
# Test if /usr/local/bin exists. If not fallback to /usr/bin
|
||||||
if [ ! -d "$DESTINATION_DIR" ]; then
|
if [ ! -d "$DESTINATION_DIR" ]; then
|
||||||
DESTINATION_DIR="/usr/bin"
|
DESTINATION_DIR=/usr/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If h-m-m doesn't exist in the same directory as this script, tries to download from github repository
|
# If h-m-m doesn't exist in the same directory as this script, tries to download from github repository
|
||||||
if [ ! -f "$HMM_PATH" ]; then
|
if [ ! -f "$HMM_PATH" ]; then
|
||||||
if [ "$(curl --write-out '%{http_code}' --silent https://raw.githubusercontent.com/nadrad/h-m-m/main/h-m-m --output /tmp/h-m-m)" = "200" ]; then
|
if [ "$(curl --write-out '%{http_code}' --silent https://raw.githubusercontent.com/nadrad/h-m-m/main/h-m-m --output /tmp/h-m-m)" = "200" ]; then
|
||||||
HMM_PATH="/tmp/h-m-m"
|
HMM_PATH=/tmp/h-m-m
|
||||||
else
|
else
|
||||||
printf "ERROR: Could not download h-m-m\n"
|
printf "ERROR: Could not download h-m-m\n"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue