aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/core/autodep.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hyperterm/core/autodep.sh')
-rw-r--r--hyperterm/core/autodep.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/hyperterm/core/autodep.sh b/hyperterm/core/autodep.sh
index 8973100..26a1a3b 100644
--- a/hyperterm/core/autodep.sh
+++ b/hyperterm/core/autodep.sh
@@ -10,9 +10,10 @@ function install_package() {
msg "El paquete $pkg no se encontrĂ³. Procediendo a instalar..." \
"$pkg not found. Attempting to install..."
- local INSTALLER=""
- local SUDO=""
- local USER_CMD=$(command -v sudo || command -v doas)
+ local INSTALLER
+ local SUDO
+ local USER_CMD
+ USER_CMD=$(command -v sudo || command -v doas)=$(command -v sudo || command -v doas)
[[ "$(id -u)" -ne 0 ]] && SUDO="$USER_CMD"