-
Notifications
You must be signed in to change notification settings - Fork 443
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The run fails because of an error in the apt-get command check statement.
Here is the solution:
tercel@192 bittensor % git diff
diff --git a/scripts/install.sh b/scripts/install.sh
index 6171d187..6470a5eb 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -178,7 +178,7 @@ OS="$(uname)"
if [[ "$OS" == "Linux" ]]; then
which -s apt-get
- if [[ $? == 0 ]] ; then
+ if [[ $? != 0 ]] ; then
abort "This linux based install requires apt-get. To run with other distros (centos, arch, etc), you will need to manually install the requirements"
fi
echo """
tercel@192 bittensor %
To Reproduce
tercel@192:~/bittensor$ ./scripts/install.sh
This linux based install requires apt-get. To run with other distros (centos, arch, etc), you will need to manually install the requirements
tercel@192:~/bittensor$
Expected behavior
tercel@192:~/bittensor$ ./scripts/install.sh
██████╗░██╗████████╗████████╗███████╗███╗░░██╗░██████╗░█████╗░██████╗░
██╔══██╗██║╚══██╔══╝╚══██╔══╝██╔════╝████╗░██║██╔════╝██╔══██╗██╔══██╗
██████╦╝██║░░░██║░░░░░░██║░░░█████╗░░██╔██╗██║╚█████╗░██║░░██║██████╔╝
██╔══██╗██║░░░██║░░░░░░██║░░░██╔══╝░░██║╚████║░╚═══██╗██║░░██║██╔══██╗
██████╦╝██║░░░██║░░░░░░██║░░░███████╗██║░╚███║██████╔╝╚█████╔╝██║░░██║
╚═════╝░╚═╝░░░╚═╝░░░░░░╚═╝░░░╚══════╝╚═╝░░╚══╝╚═════╝░░╚════╝░╚═╝░░╚═╝
- Mining a new element.
==> This script will install:
Screenshots
No response
Environment
Ubuntu
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working