Skip to content

Commit a924d2d

Browse files
committed
fix: env config name
1 parent 63211d7 commit a924d2d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

scripts/install.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env bash
1+
#!/usr/bin/env bash
22
set -e
33

44
# Colores
@@ -8,11 +8,11 @@ YELLOW='\033[1;33m'
88
NC='\033[0m' # No Color
99

1010
REPO="RustLangES/grhooks"
11-
VERSION=${GRHOOKS_VERSION:-"latest"}
12-
INSTALL_DIR=${GRHOOKS_INSTALL_DIR:-"/usr/local/bin"}
13-
CONFIG_DIR=${GRHOOKS_CONFIG_DIR:-"/etc/grhooks"}
14-
SERVICE_NAME=${GRHOOKS_SERVICE_NAME:-"grhooks"}
15-
LOG_LEVEL=${GRHOOKS_LOG_LEVEL:-"info"}
11+
VERSION=${VERSION:-"latest"}
12+
INSTALL_DIR=${INSTALL_DIR:-"/usr/local/bin"}
13+
CONFIG_DIR=${CONFIG_DIR:-"/etc/grhooks"}
14+
SERVICE_NAME=${SERVICE_NAME:-"grhooks"}
15+
LOG_LEVEL=${LOG_LEVEL:-"info"}
1616

1717
if [[ "$(uname)" == "Darwin" ]]; then
1818
echo -e "${RED}Error: This script is just for linux systems${NC}"
@@ -53,7 +53,8 @@ function prompt_yes_no {
5353
done
5454
}
5555

56-
if ! prompt_yes_no "Do you want to continue with the installation?"; then
56+
confirmed=$(prompt_yes_no "Do you want to continue with the installation?")
57+
if [ "$confirmed" -eq 1 ]; then
5758
echo -e "${RED}Installation aborted.${NC}"
5859
exit 1
5960
fi

0 commit comments

Comments
 (0)