summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmael Luceno2022-03-14 17:29:14 +0100
committerIsmael Luceno2022-03-14 22:48:43 +0100
commitb6a8a0d18f2f852056f2181bb763c06fe3c9aef1 (patch)
treed85ffba2992417b698fa03ef5761800ebf0fc401
parentb30cd72c9e9cc34fbfcdb90dc9fcc2a1dbb0350e (diff)
api2: Simplify calls to delve
-rwxr-xr-xvar/lib/sorcery/modules/build_api/api29
1 files changed, 2 insertions, 7 deletions
diff --git a/var/lib/sorcery/modules/build_api/api2 b/var/lib/sorcery/modules/build_api/api2
index 0c355e90..a2212a40 100755
--- a/var/lib/sorcery/modules/build_api/api2
+++ b/var/lib/sorcery/modules/build_api/api2
@@ -85,13 +85,8 @@ run_build_spell() {
then
invoke_installwatch
fi &&
- if [[ $OVERRIDE_GRIMOIRES ]]; then
- delve -g "$OVERRIDE_GRIMOIRES" $SPELL INSTALL &&
- delve -g "$OVERRIDE_GRIMOIRES" $SPELL INSTALL_EXTRAS
- else
- delve $SPELL INSTALL &&
- delve $SPELL INSTALL_EXTRAS
- fi &&
+ delve ${OVERRIDE_GRIMOIRES+-g "$OVERRIDE_GRIMOIRES"} $SPELL INSTALL &&
+ delve ${OVERRIDE_GRIMOIRES+-g "$OVERRIDE_GRIMOIRES"} $SPELL INSTALL_EXTRAS &&
run_post_install || return 2
run_transfer &&
devoke_installwatch &&