bc command line utility breaks Hyperdrive
hexblot opened this issue · 0 comments
hexblot commented
Describe the bug
When using the curl -Ls https://github.com/lando/hyperdrive/releases/download/v0.6.1/hyperdrive > /tmp/hyperdrive && chmod +x /tmp/hyperdrive && /tmp/hyperdrive
snippet as described in the README, the script fails almost immediately under Debian 10/WSL2.
To Reproduce
Steps to reproduce the behavior:
- Under WSL2/Debian, run the
curl [...] && /tmp/hyperdrive
snippet as per README - Receive the initial screen with 12 par-steps, and prompt to PRESS ENTER to analyze
- See error:
_ _ _ _
| | | | | | (_)
| |__| |_ _ _ __ ___ _ __ __| |_ __ ___ _____
| __ | | | | '_ \ / _ \ '__/ _` | '__| \ \ / / _ \
| | | | |_| | |_) | __/ | | (_| | | | |\ V / __/
|_| |_|\__, | .__/ \___|_| \__,_|_| |_| \_/ \___|
__/ | |
|___/|_|
Determining operating system /tmp/hyperdrive: line 162: bc: command not found
/tmp/hyperdrive: line 163: bc: command not found
/tmp/hyperdrive: line 165: [: -gt: unary operator expected
/tmp/hyperdrive: line 173: bc: command not found
/tmp/hyperdrive: line 179: bc: command not found %
/tmp/hyperdrive: line 180: bc: command not found
/tmp/hyperdrive: line 185: bc: command not found
sleep: missing operand
Try 'sleep --help' for more information.
FAILED WITH CODE 1!
Error
bc: command not found
Expected behavior
Hyperdrive analyzes the computer.
Operating System and version:
Debian under WSL2, uname:
Linux tmspc071 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 GNU/Linux
Solution
sudo apt install bc
solved the problem, so possibly check its existence and/or update documentation?