File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1- #! /bin/env bash
1+ #! /usr/ bin/env bash
22set -e
33
44# Colores
@@ -8,11 +8,11 @@ YELLOW='\033[1;33m'
88NC=' \033[0m' # No Color
99
1010REPO=" 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
1717if [[ " $( 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
5960fi
You can’t perform that action at this time.
0 commit comments