Skip to content

Commit

Permalink
Debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Oct 14, 2024
1 parent 77e02a7 commit c0562b7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ success() {
printf "%b\n" "${green:-}✔️ $@${normal:-}"
}

# Debug message
debug() {
if [ -n "${INSTALL_DEBUG:-}" ]; then
printf "%b\n" "${normal:-}🐞 $@"
fi
}

# Ask message
ask() {
while true; do
Expand Down Expand Up @@ -239,8 +246,8 @@ operative_system() {
elif [ "${PLATFORM_ARCH}" = "amd64" ]; then
PLATFORM_PREFIX="/usr/local"
fi
return
PLATFORM_BIN="${PLATFORM_PREFIX}/bin"
return
;;
# FreeBSD)
# PLATFORM_OS="freebsd"
Expand Down Expand Up @@ -653,7 +660,7 @@ additional_packages_install() {
}

path_install() {
print "Checking if ${PLATFORM_BIN} is in PATH environment variable."
debug "Checking if ${PLATFORM_BIN} is in PATH environment variable ($PATH)."

local path="$(check_path_env)"

Expand Down

0 comments on commit c0562b7

Please sign in to comment.