diff options
-rwxr-xr-x | misc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc b/misc index 0974561..3b46cbd 100755 --- a/misc +++ b/misc | |||
@@ -169,14 +169,14 @@ with_repo() { # with_repo COMMAND ... | |||
169 | 169 | ||
170 | install_deps() { # install_deps | 170 | install_deps() { # install_deps |
171 | for dep in "${MISC_DEPENDENCIES[@]}"; do | 171 | for dep in "${MISC_DEPENDENCIES[@]}"; do |
172 | misc "${_ARGS[@]}" "$dep" || | 172 | run misc "${_ARGS[@]}" "$dep" || |
173 | die 60 "Error installing dependency: \"$dep\"" | 173 | die 60 "Error installing dependency: \"$dep\"" |
174 | done | 174 | done |
175 | if command -v apt >/dev/null 2>&1; then | 175 | if command -v apt >/dev/null 2>&1; then |
176 | for dep in "${APT_DEPENDENCIES[@]}"; do | 176 | for dep in "${APT_DEPENDENCIES[@]}"; do |
177 | # XXX: I don't like how hacky this is. | 177 | # XXX: I don't like how hacky this is. |
178 | if [[ "$(apt list --installed "$dep" 2>/dev/null | wc -l)" -lt 2 ]]; then | 178 | if [[ "$(apt list --installed "$dep" 2>/dev/null | wc -l)" -lt 2 ]]; then |
179 | sudo apt install "$dep" || | 179 | run sudo apt install "$dep" || |
180 | die 65 "Error installing dependency: \"$dep\"" | 180 | die 65 "Error installing dependency: \"$dep\"" |
181 | fi | 181 | fi |
182 | done | 182 | done |