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
-
Inside docker install curl as prerequisite:
apt update && apt install -y curl
-
Set minimal terminal functionality:
export TERM=dumb
-
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
Summary
curl -fsSL https://get.flipt.io/v2 | shdoesn'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 ubuntuInside docker install curl as prerequisite:
apt update && apt install -y curlSet minimal terminal functionality:
export TERM=dumbRun installation script:
curl -fsSL https://get.flipt.io/v2 | shYou'll get either an error like
curl: (23) Failure writing output to destinationor nothing.Full execution log:
Normal execution log: