about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-02-10 22:56:23 -0600
committerCase Duckworth2023-02-10 22:56:23 -0600
commitdc2998dfafd01c073ea441e58422c58ec86aa703 (patch)
treefdc91bfe839a79afe7519dd5a26d08c4740367af
parentWhitespace (diff)
downloadmisc-dc2998dfafd01c073ea441e58422c58ec86aa703.tar.gz
misc-dc2998dfafd01c073ea441e58422c58ec86aa703.zip
"Run" dependency installation HEAD main
-rwxr-xr-xmisc4
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
170install_deps() { # install_deps 170install_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