scripts: small patch on scripts
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
parent
09352467fb
commit
d0d0d4b6a5
|
@ -1,5 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo $(pwd)
|
||||
cd attackathon/warnet
|
||||
python3 -m venv .venv # Use alternative venv manager if desired
|
||||
source .venv/bin/activate
|
||||
pip install -e .
|
||||
cd .. && cd ..
|
||||
./attackathon/scripts/credentials.sh
|
||||
|
||||
if [ ! -d "attackathon" ]; then
|
||||
echo "Error: attackathon repo not found, script should be run from directory containing it."
|
||||
exit 1
|
||||
|
|
|
@ -19,8 +19,12 @@ current_directory=$(pwd)
|
|||
sim_files="$current_directory/attackathon/data/$network_name"
|
||||
|
||||
cd warnet
|
||||
python3 -m venv .venv # Use alternative venv manager if desired
|
||||
source .venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -e .
|
||||
|
||||
|
||||
echo "💣 Bringing up warnet 💣"
|
||||
warcli network start "$sim_files/$network_name.graphml" --force
|
||||
|
||||
|
|
|
@ -17,11 +17,6 @@ fi
|
|||
|
||||
cd warnet
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "There are uncommitted changes in warnet, please stash them!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check whether running docker desktop or minikube.
|
||||
docker_info=$(docker info)
|
||||
if grep -q "Operating System:.*Desktop" <<< "$docker_info"; then
|
||||
|
|
Loading…
Reference in New Issue