Revert "script: check that stdin is a terminal"

The patch does not make any sense for v2.24.1, because non-tty
stdin will be supported in version v2.25.

This reverts commit e088b34acd885984475de471f32e010f9549b81e.