mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 15:04:42 +00:00
🐛 udpate
This commit is contained in:
20
install.sh
20
install.sh
@@ -4,21 +4,11 @@
|
|||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Colors
|
# Plain logging (no colors/emojis)
|
||||||
GREEN='\033[0;32m'
|
log_info() { printf "%s\n" "$1"; }
|
||||||
BLUE='\033[0;34m'
|
log_success() { printf "%s\n" "$1"; }
|
||||||
YELLOW='\033[1;33m'
|
log_warning() { printf "Warning: %s\n" "$1"; }
|
||||||
RED='\033[0;31m'
|
log_error() { printf "Error: %s\n" "$1"; }
|
||||||
NC='\033[0m'
|
|
||||||
|
|
||||||
# Verbosity (0 = quiet, 1 = verbose)
|
|
||||||
VERBOSE=0
|
|
||||||
|
|
||||||
# Logging functions (quiet by default)
|
|
||||||
log_info() { [[ ${VERBOSE} -eq 1 ]] && echo -e "${BLUE}$1${NC}"; }
|
|
||||||
log_success() { [[ ${VERBOSE} -eq 1 ]] && echo -e "${GREEN}✅ $1${NC}"; }
|
|
||||||
log_warning() { [[ ${VERBOSE} -eq 1 ]] && echo -e "${YELLOW}⚠️ $1${NC}"; }
|
|
||||||
log_error() { echo -e "${RED}❌ $1${NC}"; }
|
|
||||||
|
|
||||||
# Default installation directory
|
# Default installation directory
|
||||||
INSTALL_DIR="/usr/local/bin"
|
INSTALL_DIR="/usr/local/bin"
|
||||||
|
|||||||
Reference in New Issue
Block a user