Fixed: Final check looking in /usr/local/bin

On branch hl-521
 Your branch is up to date with 'origin/hl-521'.

 Changes to be committed:
	modified:   install-scripts/03-Final-Check.sh
This commit is contained in:
Don Williams 2025-11-13 21:07:05 -05:00
parent bb51fccf66
commit ade0c43bba

View File

@ -13,7 +13,7 @@ packages=(
kitty kitty
) )
# Local packages that should be in /usr/local/bin/ # Local packages that should be available in PATH (previously assumed in /usr/local/bin)
local_pkgs_installed=( local_pkgs_installed=(
hyprland hyprland
rofi rofi
@ -61,9 +61,9 @@ for pkg in "${packages[@]}"; do
fi fi
done done
# Check for local packages # Check for local packages in PATH (hyprland, rofi, etc.)
for pkg1 in "${local_pkgs_installed[@]}"; do for pkg1 in "${local_pkgs_installed[@]}"; do
if ! [ -f "/usr/local/bin/$pkg1" ]; then if ! command -v "$pkg1" >/dev/null 2>&1; then
local_missing+=("$pkg1") local_missing+=("$pkg1")
fi fi
done done
@ -88,9 +88,9 @@ else
fi fi
if [ ${#local_missing[@]} -ne 0 ]; then if [ ${#local_missing[@]} -ne 0 ]; then
echo "${WARN} The following local packages are missing from /usr/local/bin/ and will be logged:" echo "${WARN} The following local packages are missing from PATH and will be logged:"
for pkg1 in "${local_missing[@]}"; do for pkg1 in "${local_missing[@]}"; do
echo "$pkg1 is not installed. can't find it in /usr/local/bin/" echo "$pkg1 is not installed. can't find it in PATH"
echo "$pkg1" >> "$LOG" # Log the missing local package to the file echo "$pkg1" >> "$LOG" # Log the missing local package to the file
done done
fi fi