Skip to content

Commit 72e330b

Browse files
MicLiegdgibbs64
andauthored
fix(check_deps): clarify to run the generated command as root (#4490)
* fix: servername variable assignment for sf and unt The servername variable was incorrectly assigned using the selfname variable instead of the correct servername variable. This has been fixed to ensure accurate information is displayed for each game type. * fix(check_deps): clarify to run the generated command as root --------- Co-authored-by: Daniel Gibbs <me@danielgibbs.co.uk>
1 parent 1e165ce commit 72e330b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lgsm/modules/check_deps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ fn_install_missing_deps() {
204204
# If automatic dependency install is unavailable.
205205
if [ "${autodepinstall}" != "0" ]; then
206206
if [ "$(command -v apt 2> /dev/null)" ]; then
207-
echo -e "${i386installcommand}sudo apt update; sudo apt install ${array_deps_missing[*]}"
207+
echo -e " Run: '${green}${i386installcommand}sudo apt update; sudo apt install ${array_deps_missing[*]}${default}' as root to install missing dependencies."
208208
elif [ "$(command -v dnf 2> /dev/null)" ]; then
209-
echo -e "sudo dnf install ${array_deps_missing[*]}"
209+
echo -e " Run: '${green}sudo dnf install ${array_deps_missing[*]}${default}' as root to install missing dependencies."
210210
elif [ "$(command -v yum 2> /dev/null)" ]; then
211-
echo -e "sudo yum install ${array_deps_missing[*]}"
211+
echo -e " Run: '${green}sudo yum install ${array_deps_missing[*]}${default}' as root to install missing dependencies."
212212
fi
213213
fi
214214

0 commit comments

Comments
 (0)