Point guard-lib at the consolidated utils monorepo
Some checks are pending
pre-commit / pre-commit (push) Waiting to run
Tests / test (3.10) (push) Waiting to run
Tests / test (3.11) (push) Waiting to run
Tests / test (3.12) (push) Waiting to run

guard-lib was folded into github.com/kuhyx/utils as a subdirectory;
update the install.sh detection/install path from $HOME/guard-lib to
$HOME/utils/guard-lib to match.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Krzysztof Rudnicki 2026-07-10 14:01:04 +02:00
parent 95bd0b93bd
commit c4e9e4dfc3

View File

@ -18,17 +18,17 @@ echo
echo "Checking for guard-lib (required by 'block-gaming')..."
if command -v guardctl >/dev/null 2>&1; then
echo "guardctl found on PATH."
elif [[ -x "$HOME/guard-lib/install.sh" ]]; then
echo "guardctl not found - installing guard-lib from $HOME/guard-lib..."
elif [[ -x "$HOME/utils/guard-lib/install.sh" ]]; then
echo "guardctl not found - installing guard-lib from $HOME/utils/guard-lib..."
if [[ $EUID -eq 0 ]]; then
bash "$HOME/guard-lib/install.sh"
bash "$HOME/utils/guard-lib/install.sh"
else
echo "guard-lib install needs root: sudo bash \"$HOME/guard-lib/install.sh\""
echo "guard-lib install needs root: sudo bash \"$HOME/utils/guard-lib/install.sh\""
echo "('block-gaming' will not work until that is done; the rest of this tool is unaffected.)"
fi
else
echo "Warning: guardctl not found and ~/guard-lib is not present."
echo "'block-gaming' requires guard-lib - set up ~/guard-lib and run its install.sh, then re-run this installer."
echo "Warning: guardctl not found and ~/utils/guard-lib is not present."
echo "'block-gaming' requires guard-lib - set up ~/utils/guard-lib and run its install.sh, then re-run this installer."
echo "(The rest of this tool is unaffected.)"
fi