Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lgsm/modules/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,17 @@ fn_install_missing_deps() {
fn_script_log_warn "Missing dependencies: ${array_deps_missing[*]}"
fi

# Attempt automatic dependency installation
if [ "${autoinstall}" == "1" ]; then
sudo -n true > /dev/null 2>&1
# Attempt automatic dependency installation.
# Check for passwordless sudo first: sudo-rs (default sudo from Ubuntu 25.10) always asks
# for a password for sudo -v, even when the user has NOPASSWD.
if sudo -n true > /dev/null 2>&1; then
autodepinstall="0"
elif [ "${autoinstall}" == "1" ]; then
autodepinstall="1"
else
sudo -v > /dev/null 2>&1
autodepinstall="$?"
fi
autodepinstall="$?"

if [ "${monoinstalled}" == "false" ]; then
fn_install_mono_repo
Expand Down
Loading