mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Change echo to printf in gaming and security (#484)
Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
41817c333c
commit
eb4cca8946
|
@ -12,7 +12,7 @@ if [ -z "$possible_paths" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display possible paths and allow selection
|
# Display possible paths and allow selection
|
||||||
echo "Possible Diablo II Resurrected folder locations:"
|
printf "%b\n" "${YELLOW}Possible Diablo II Resurrected folder locations:${RC}"
|
||||||
mapfile -t paths_array <<< "$possible_paths"
|
mapfile -t paths_array <<< "$possible_paths"
|
||||||
selected=0
|
selected=0
|
||||||
total=${#paths_array[@]}
|
total=${#paths_array[@]}
|
||||||
|
@ -77,7 +77,7 @@ select_path
|
||||||
|
|
||||||
# Validate the path
|
# Validate the path
|
||||||
if [ ! -d "$d2r_path" ]; then
|
if [ ! -d "$d2r_path" ]; then
|
||||||
echo "Error: The specified path does not exist."
|
printf "%b\n" "${RED}Error: The specified path does not exist.${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -98,14 +98,11 @@ rm /tmp/lootfilter.zip
|
||||||
|
|
||||||
printf "%b\n" "${GREEN}Loot filter installed successfully in $mods_path${RC}"
|
printf "%b\n" "${GREEN}Loot filter installed successfully in $mods_path${RC}"
|
||||||
|
|
||||||
# Add instructions for setting launch options
|
printf "\nTo complete the setup, please follow these steps to add launch options in Battle.net:\n"
|
||||||
echo
|
printf "1. Open the Battle.net launcher\n"
|
||||||
echo "To complete the setup, please follow these steps to add launch options in Battle.net:"
|
printf "2. Select Diablo II: Resurrected\n"
|
||||||
echo "1. Open the Battle.net launcher"
|
printf "3. Click the gear icon next to the 'Play' button\n"
|
||||||
echo "2. Select Diablo II: Resurrected"
|
printf "4. Select 'Game Settings'\n"
|
||||||
echo "3. Click the gear icon next to the 'Play' button"
|
printf "5. In the 'Additional command line arguments' field, enter: -mod lootfilter -txt\n"
|
||||||
echo "4. Select 'Game Settings'"
|
printf "6. Click 'Done' to save the changes\n"
|
||||||
echo "5. In the 'Additional command line arguments' field, enter: -mod lootfilter -txt"
|
printf "\nAfter completing these steps, launch Diablo II: Resurrected through Battle.net to use the loot filter.\n"
|
||||||
echo "6. Click 'Done' to save the changes"
|
|
||||||
echo
|
|
||||||
echo "After completing these steps, launch Diablo II: Resurrected through Battle.net to use the loot filter."
|
|
|
@ -3,7 +3,7 @@
|
||||||
. ../common-script.sh
|
. ../common-script.sh
|
||||||
|
|
||||||
installPkg() {
|
installPkg() {
|
||||||
echo "Installing UFW..."
|
printf "%b\n" "${YELLOW}Installing UFW...${RC}"
|
||||||
if ! command_exists ufw; then
|
if ! command_exists ufw; then
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
|
@ -14,7 +14,7 @@ installPkg() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
echo "UFW is already installed."
|
printf "%b\n" "${GREEN}UFW is already installed${RC}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user