1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Update one_liner.sh

Give access to /dev/tty explicitly on read prompt
This commit is contained in:
Darko Macesic 2022-05-25 14:40:47 +02:00 committed by GitHub
parent 5d80087645
commit b8a1983354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -296,7 +296,7 @@ main() {
rm -rf $dest/*
cp -r $td/* $dest
else
read -p "ZoKrates is already installed, overwrite (y/n)? " answer
read -p "ZoKrates is already installed, overwrite (y/n)? " answer < /dev/tty
case ${answer} in
y|Y )
rm -rf $dest/*