Clean up depcheck

This commit is contained in:
Gergely Koloszar 2025-10-18 22:53:14 +02:00
parent d53476399d
commit 6bb59f4060

View File

@ -224,8 +224,7 @@ END
}
depcheck(){
for dep in "${!deps[@]}"; do
command -v "$dep" 2>&1>/dev/null
if [[ $? -eq 1 ]]; then
if ! command -v "$dep" &> /dev/null; then
local msg="Requires $dep >= ${deps[$dep]}"
raise_error_and_quit "$msg"
fi