sh-elf-vhex - v2.0.0-rc2 : hotfix input validation skip in curl operation
*fix* > [scripts] | [bootstrap] check if the `stdin` is available before request user input
This commit is contained in:
parent
3a4bb9032e
commit
5bca98ca63
|
@ -114,7 +114,7 @@ then
|
|||
else
|
||||
read -p 'Uninstall the sh-elf-vhex compiler ? [yN]: ' -r valid
|
||||
fi
|
||||
if [[ "$valid" != 'y' ]]; then
|
||||
if [[ -t 0 && "$valid" != 'y' ]]; then
|
||||
echo 'Operation aborted o(x_x)o'
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue