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:
YannMagnin 2023-12-17 17:32:19 +01:00
parent 3a4bb9032e
commit 5bca98ca63
No known key found for this signature in database
GPG Key ID: D82629D933EADC59
1 changed files with 1 additions and 1 deletions

View File

@ -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