mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Clean up depcheck
This commit is contained in:
1 parent
d53476399d
commit
6bb59f4060
1 file changed
+1
-2
@@ -224,8 +224,7 @@ END
|
|||||||
}
|
}
|
||||||
depcheck(){
|
depcheck(){
|
||||||
for dep in "${!deps[@]}"; do
|
for dep in "${!deps[@]}"; do
|
||||||
command -v "$dep" 2>&1>/dev/null
|
if ! command -v "$dep" &> /dev/null; then
|
||||||
if [[ $? -eq 1 ]]; then
|
|
||||||
local msg="Requires $dep >= ${deps[$dep]}"
|
local msg="Requires $dep >= ${deps[$dep]}"
|
||||||
raise_error_and_quit "$msg"
|
raise_error_and_quit "$msg"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user