Skip to content

Commit a1b65a8

Browse files
committed
fix: improvements into install script
1 parent ae02487 commit a1b65a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/install.sh

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

4-
# Colores
54
RED='\033[0;31m'
65
GREEN='\033[0;32m'
76
YELLOW='\033[1;33m'
@@ -22,7 +21,7 @@ ARCH=$(uname -m)
2221
case $ARCH in
2322
x86_64) ARCH="x86_64"; ARCH_NAME="x86_64 (64-bit)" ;;
2423
aarch64) ARCH="arm64"; ARCH_NAME="ARM64" ;;
25-
*) echo -e "${RED}Arquitectura no soportada: $ARCH${NC}"; exit 1 ;;
24+
*) echo -e "${RED}Architecture not supported: $ARCH${NC}"; exit 1 ;;
2625
esac
2726

2827
if [[ "$(uname)" == "Darwin" ]]; then
@@ -99,7 +98,7 @@ if [[ "$PKG_TYPE" == "deb" || "$PKG_TYPE" == "rpm" ]]; then
9998
echo -e "${YELLOW}Removing previous version...${NC}"
10099
sudo rpm --erase grhooks || true
101100
fi
102-
101+
103102
if [[ "$PKG_TYPE" == "deb" ]]; then
104103
sudo dpkg -i "$TEMP_DIR/grhooks.deb" || sudo apt-get install -f -y
105104
INSTALL_DIR=$(which grhooks || echo "/usr/bin/grhooks")

0 commit comments

Comments
 (0)