From 5bca98ca63db87258160ed833d8efbf81998f741 Mon Sep 17 00:00:00 2001 From: YannMagnin Date: Sun, 17 Dec 2023 17:32:19 +0100 Subject: [PATCH] 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 --- scripts/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index 345d05f..e96d460 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -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