diff --git a/main.sh b/main.sh index 1bc9dbf..d540108 100644 --- a/main.sh +++ b/main.sh @@ -130,9 +130,9 @@ gm_send_package() { if is_valid_ip "$channel"; then unzip_package $channel $package $source_tar $destination_dir else - cat "txt/$channel" | while read -r ip; do + while read -r ip; do unzip_package $ip $package $source_tar $destination_dir - done + done < "txt/$channel" fi }