aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/core/autodep.sh
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2025-11-03 16:27:38 -0500
committerAstound <kirito@disroot.org>2025-11-03 16:27:38 -0500
commitaad97d949ac0cac085e8cbcf1e34c7e59d17fdc0 (patch)
treea593ac4d073dbe2f321e76552e83d6b11e497ff7 /hyperterm/core/autodep.sh
parent6185230dfdc4514d189c9376b8a306a76dc0cb36 (diff)
downloadhyperterm-aad97d949ac0cac085e8cbcf1e34c7e59d17fdc0.tar.lz
hyperterm-aad97d949ac0cac085e8cbcf1e34c7e59d17fdc0.tar.xz
hyperterm-aad97d949ac0cac085e8cbcf1e34c7e59d17fdc0.zip
Optimized git
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"