From 73d49d00c872576d836b31706a46902dc476bcf8 Mon Sep 17 00:00:00 2001 From: ggodot Date: Mon, 26 Jan 2026 00:00:30 +0100 Subject: [PATCH] i hate spelling issues --- mc-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mc-install.sh b/mc-install.sh index 35863c5..768f8ae 100755 --- a/mc-install.sh +++ b/mc-install.sh @@ -51,8 +51,8 @@ sleep 2 printf "\n+ Starting to upgrade base system\n\n" -apt update >> -apt upgrade -y >> +apt update +apt upgrade -y apt autoremove --purge -y @@ -175,11 +175,11 @@ if [[ "$ansPlayerSync" =~ ["y"|"Y"] || -z $ansPlayerSync ]]; then rndr=$((RANDOM % (32765-10000+1)+10000)) sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id - if [[ $password -n ]]; then + if [[ -n $password ]]; then sed -i "s/KurevskeHesloMain/$password/g" config/playersync-common.toml fi - if [[ $user_name -z ]]; then + if [[ -n $user_name ]]; then sed -i "s/mainUser/$user_name/g" config/playersync-common.toml fi @@ -210,7 +210,7 @@ else read startServer if [[ "$startServer" =~ ("y"|"Y") || -z $startServer ]]; then - systemctl start mc-forge.serice + systemctl start mc-forge fi systemctl enable mc-forge