fixed spellcheck and minor issues for release

This commit is contained in:
2026-10-13 17:49:03 +02:00
parent 8221ac5325
commit ea1a8a7a7e
25 changed files with 74 additions and 205 deletions
+4
View File
@@ -34,7 +34,10 @@
# * OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# shellcheck disable=SC2317,SC2329 # nested helper functions are called through their name (shellcheck cannot follow them)
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf "compress"
@@ -832,6 +835,7 @@ taz()
}
# disp() hides info messages when QUIET=1; being local, this only lasts
# for the duration of this call (dynamic scoping).
# shellcheck disable=SC2034 # read by disp
[[ -n $quiet ]] && local QUIET=1
# Fall back to the configured (or built-in) default format list.
+1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers, then the ones private to this module (helpers/conf.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf "debug"
+3 -1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf disp
@@ -187,7 +188,8 @@ disp()
# Only a real ESC or a literal backslash can start an ANSI sequence;
# testing this first avoids copying the message tail (and running
# the regex) for every ordinary character.
if [[ $_c == $'\e' || $_c == '\' ]]; then
# shellcheck disable=SC1003 # a literal backslash
if [[ $_c == $'\e' || $_c == '\' ]]; then
local _sub=${message:_i}
if [[ $_sub =~ ^($ansi_re) ]]; then
line+=${BASH_REMATCH[0]}
+1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf "filefct"
+1
View File
@@ -37,6 +37,7 @@
load_conf "fun"
# Common helpers, then the ones private to this module (helpers/fun.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+1
View File
@@ -37,6 +37,7 @@
load_conf git
# Common helpers, then the ones private to this module (helpers/git.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+2
View File
@@ -37,6 +37,7 @@
load_conf "help"
# Common helpers, then the ones private to this module (helpers/help.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
@@ -69,6 +70,7 @@ help()
if [[ -n ${NO_COLOR:-} ]]; then
printf "Welcome to your profile! Here is a list of available commands:\n\n"
else
# shellcheck disable=SC2154 # colour variables are defined by disp.sh
printf "%b%s%b\n\n" "$BIWhite" \
"Welcome to your profile! Here is a list of available commands:" "$DEFAULTCOL"
fi
+1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf info
+1
View File
@@ -35,6 +35,7 @@
# ------------------------------------------------------------------------------
# Common helpers (helpers/common.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
load_conf lang
+3
View File
@@ -34,9 +34,12 @@
# * OF SUCH DAMAGE.
# ------------------------------------------------------------------------------
# shellcheck disable=SC2317,SC2329 # nested helper functions are called through their name (shellcheck cannot follow them)
load_conf "net"
# Common helpers, then the ones private to this module (helpers/net.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+1
View File
@@ -37,6 +37,7 @@
load_conf "packages"
# Common helpers, then the ones private to this module (helpers/packages.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+1
View File
@@ -37,6 +37,7 @@
load_conf "processes"
# Common helpers, then the ones private to this module (helpers/processes.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+2
View File
@@ -37,6 +37,7 @@
load_conf "prompt"
# Common helpers, then the ones private to this module (helpers/prompt.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
@@ -316,6 +317,7 @@ timer_start()
{
if [[ -z "${_timer_start_us:-}" ]]; then
_timer_now
# shellcheck disable=SC2154 # set by _timer_now (helpers/prompt.sh)
_timer_start_us="$_timer_us"
fi
}
+1
View File
@@ -37,6 +37,7 @@
load_conf "pwd"
# Common helpers, then the ones private to this module (helpers/pwd.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+2
View File
@@ -37,6 +37,7 @@
load_conf "rain"
# Common helpers, then the ones private to this module (helpers/rain.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
@@ -312,6 +313,7 @@ rainbow()
local use_truecolor=0
local offset=0 row=0 col=0 palette_width=0 idx=0
local row_line="" screen="" ch=""
# shellcheck disable=SC2034 # used by _rain_enter/_rain_leave (dynamic scoping)
local saved_stty="" saved_traps=""
# WINCH handler (and initial sizing): rebuild the palette for the new width
+1
View File
@@ -37,6 +37,7 @@
load_conf "ssh"
# Common helpers, then the ones private to this module (helpers/ssh.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
+4 -3
View File
@@ -41,6 +41,7 @@ export BASE_URL="https://git.geoffray-levasseur.org/fatalerrors/profile"
load_conf "updates"
# Common helpers, then the ones private to this module (helpers/updates.sh)
# shellcheck source=../helpers/common.sh
declare -F _profile_load_helpers >/dev/null || . "$(dirname -- "${BASH_SOURCE[0]}")/../helpers/common.sh"
_profile_load_helpers "${BASH_SOURCE[0]}"
@@ -278,9 +279,9 @@ profile_upgrade()
mv "$backup_dir" "$MYPATH" 2>/dev/null || true
return 3
}
[[ -n "$branch" ]] && (
cd "$MYPATH" && git checkout "$branch"
) || true
if [[ -n "$branch" ]] && ! ( cd "$MYPATH" && git checkout "$branch" ); then
disp W "Could not switch to branch '$branch'; staying on the default branch."
fi
# The personal files are not in the repository (profile.conf is
# git-ignored): without this the new install would start without