diff --git a/main.sh b/main.sh index 898012e..2dc121a 100644 --- a/main.sh +++ b/main.sh @@ -111,12 +111,12 @@ game_send_package() { restart_server "core" "$channel" fi else - cat "txt/$channel" | while read -r ip; do + while read -r ip; do unzip_package $ip $package $source_tar $destination_dir if [[ $reboot -eq 1 ]]; then restart_server "core" "$ip" fi - done + done < "txt/$channel" fi }