Skip to content

Commit

Permalink
Change echo to printf in gaming and security (#484)
Browse files Browse the repository at this point in the history
Co-authored-by: nnyyxxxx <[email protected]>
  • Loading branch information
nnyyxxxx and nnyyxxxx authored Sep 19, 2024
1 parent 41817c3 commit eb4cca8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
23 changes: 10 additions & 13 deletions tabs/gaming/diablo-ii/d2r-loot-filters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ -z "$possible_paths" ]; then
fi

# 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"
selected=0
total=${#paths_array[@]}
Expand Down Expand Up @@ -77,7 +77,7 @@ select_path

# Validate the path
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
fi

Expand All @@ -98,14 +98,11 @@ rm /tmp/lootfilter.zip

printf "%b\n" "${GREEN}Loot filter installed successfully in $mods_path${RC}"

# Add instructions for setting launch options
echo
echo "To complete the setup, please follow these steps to add launch options in Battle.net:"
echo "1. Open the Battle.net launcher"
echo "2. Select Diablo II: Resurrected"
echo "3. Click the gear icon next to the 'Play' button"
echo "4. Select 'Game Settings'"
echo "5. In the 'Additional command line arguments' field, enter: -mod lootfilter -txt"
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."
printf "\nTo complete the setup, please follow these steps to add launch options in Battle.net:\n"
printf "1. Open the Battle.net launcher\n"
printf "2. Select Diablo II: Resurrected\n"
printf "3. Click the gear icon next to the 'Play' button\n"
printf "4. Select 'Game Settings'\n"
printf "5. In the 'Additional command line arguments' field, enter: -mod lootfilter -txt\n"
printf "6. Click 'Done' to save the changes\n"
printf "\nAfter completing these steps, launch Diablo II: Resurrected through Battle.net to use the loot filter.\n"
4 changes: 2 additions & 2 deletions tabs/security/firewall-baselines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
. ../common-script.sh

installPkg() {
echo "Installing UFW..."
printf "%b\n" "${YELLOW}Installing UFW...${RC}"
if ! command_exists ufw; then
case "$PACKAGER" in
pacman)
Expand All @@ -14,7 +14,7 @@ installPkg() {
;;
esac
else
echo "UFW is already installed."
printf "%b\n" "${GREEN}UFW is already installed${RC}"
fi
}

Expand Down

0 comments on commit eb4cca8

Please sign in to comment.