Skip to content

Install script doesn't work in minimal terminal #4927

Description

@oleksii-borodai

Summary

curl -fsSL https://get.flipt.io/v2 | sh doesn't work as expected with minimal terminal. Minimal terminals are sometimes used in docker images (e.g. CircleCI images).

Steps to reproduce

Run ubuntu (should work on virtually any image) in docker:
docker run --rm -it ubuntu

  1. Inside docker install curl as prerequisite:
    apt update && apt install -y curl

  2. Set minimal terminal functionality:
    export TERM=dumb

  3. Run installation script:
    curl -fsSL https://get.flipt.io/v2 | sh

You'll get either an error like curl: (23) Failure writing output to destination or nothing.

Full execution log:

root@56209b0685fe:/# export TERM=dumb
root@56209b0685fe:/# curl -fsSL https://get.flipt.io/v2 | sh
root@56209b0685fe:/# echo $?
1

Normal execution log:

root@56209b0685fe:/# export TERM=xterm
root@56209b0685fe:/# curl -fsSL https://get.flipt.io/v2 | sh
[INFO] Fetching latest v2 release information...
[INFO] Found latest v2 version: v2.2.0
[INFO] Installing Flipt v2.2.0 for linux/x86_64
[INFO] Downloading from: https://download.flipt.io/flipt/v2.2.0/linux_x86_64.tar.gz
[INFO] Extracting archive...
[INFO] Installing flipt to /usr/local/bin
[INFO] Successfully installed flipt to /usr/local/bin/flipt

[INFO] Flipt v2.2.0 installed successfully!

Get started with: flipt --help

For feedback and support:
  Discord: https://flipt.io/discord
  GitHub: https://github.com/flipt-io/flipt
  Email: [email protected]

root@56209b0685fe:/# echo $?
0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions