Skip to content

Commit 6d8701d

Browse files
committed
check python3 before running the script
1 parent d50dfa1 commit 6d8701d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/install.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ if [ "$EUID" -ne 0 ]; then
55
exit 1
66
fi
77

8+
if ! command -v python3 &> /dev/null; then
9+
echo "Python 3 is not installed. Please install Python 3 before running this script."
10+
exit 1
11+
fi
12+
813
TEMP_DIR=$(mktemp -d)
914
cd $TEMP_DIR
1015

1116
echo "Downloading Nixopus..."
1217
git clone https://github.com/raghavyuva/nixopus.git
1318
cd nixopus/installer
1419

15-
echo "Installing dependencies..."
16-
pip install -r requirements.txt
17-
1820
echo "Starting installation..."
1921
python3 install.py
2022

0 commit comments

Comments
 (0)