summaryrefslogtreecommitdiff
path: root/cerbero-uninstalled
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-07-12 14:30:57 +0530
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2023-07-17 05:52:08 +0000
commitab1e0bb3db751ea90e4d2ea771dcc373c0a8cc9d (patch)
tree4de71c5947ca35e21d8daaaf336f2fb24b6e0d42 /cerbero-uninstalled
parenta206ef3aeb4666f712013b8130d0c860b438c28f (diff)
cerbero-uninstalled: Do not use winpty with MSYS2 CI
It bails out because there's no stdin. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1216>
Diffstat (limited to 'cerbero-uninstalled')
-rwxr-xr-xcerbero-uninstalled13
1 files changed, 11 insertions, 2 deletions
diff --git a/cerbero-uninstalled b/cerbero-uninstalled
index 90ffb493..35bb8076 100755
--- a/cerbero-uninstalled
+++ b/cerbero-uninstalled
@@ -37,8 +37,17 @@ if [ "$OSTYPE" = "msys" ]; then
fi
case "$MSYS_VERSION" in
- *1) PYTHON="py -3";;
- *2) PYTHON="winpty py -3";;
+ 1) PYTHON="py -3";;
+ 2)
+ # winpty is needed to get stdin working in many cases, but it will
+ # immediately bail out if run in an environment without stdin, such as
+ # on CI.
+ if [ -n "$CI" ]; then
+ PYTHON="py -3"
+ else
+ PYTHON="winpty py -3"
+ fi
+ ;;
*) PYTHON="python3";;
esac