cambiar:

"- The file's extension \"$file\" no is \"tar\""

a

"- The file extension \"$file\" is not \"tar\""