Fix "hanging sudo" bug.

This commit is contained in:
Suzanne Dupéron 2020-02-09 00:19:43 +01:00
parent c79b09ed86
commit 0ce2a603a3

2
scripts/installer.sh Executable file → Normal file
View File

@ -62,7 +62,7 @@ else
# && redirect the output of the wget download to the temporary file
# ) || clean up temporary file if any command in the previous block failed
wget "$url" -O - \
(wget "$url" -O - 2>/dev/null || echo "ERROR: wget $url failed.") \
| sed -e "s/next/$version/g" \
| sudo sh -c ' \
( \