mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update utils.sh
This commit is contained in:
parent
9badbd591c
commit
07e1e6e039
@ -161,21 +161,3 @@ print(translate_text('$text', '$dest_lang'))
|
||||
fi
|
||||
}
|
||||
|
||||
# Check required dependencies
|
||||
check_dependencies() {
|
||||
local deps=("$@")
|
||||
local missing=()
|
||||
|
||||
for dep in "${deps[@]}"; do
|
||||
if ! command -v "$dep" >/dev/null 2>&1; then
|
||||
missing+=("$dep")
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${#missing[@]} -ne 0 ]; then
|
||||
msg_error "Missing dependencies: ${missing[*]}"
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user