Skip to content

Commit 712f7c8

Browse files
committed
Fix installer prompt when run via pipe
Read API key from /dev/tty so the installer pauses for input even when executed via curl | bash.
1 parent 07b3d77 commit 712f7c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ echo -e "${GREEN}✓${NC} the latest version of *codeplain CLI is now installed.
6161
echo ""
6262
echo -e "go to ${YELLOW}https://platform.codeplain.ai${NC} and sign up to get your API key."
6363
echo ""
64-
read -p "paste your API key here: " API_KEY
64+
read -r -p "paste your API key here: " API_KEY < /dev/tty
6565
echo ""
6666

6767
if [ -z "$API_KEY" ]; then

0 commit comments

Comments
 (0)