From 08eb2566e41a9b1619b98b517c2dfb217e1f75d1 Mon Sep 17 00:00:00 2001 From: lonrun Date: Sun, 16 Apr 2023 07:37:50 +0800 Subject: [PATCH] Add run scripts for shell --- run.sh | 9 +++++++++ run_continuous.sh | 3 +++ 2 files changed, 12 insertions(+) create mode 100755 run.sh create mode 100755 run_continuous.sh diff --git a/run.sh b/run.sh new file mode 100755 index 00000000..edcbc441 --- /dev/null +++ b/run.sh @@ -0,0 +1,9 @@ +#!/bin/bash +python scripts/check_requirements.py requirements.txt +if [ $? -eq 1 ] +then + echo Installing missing packages... + pip install -r requirements.txt +fi +python -m autogpt $@ +read -p "Press any key to continue..." diff --git a/run_continuous.sh b/run_continuous.sh new file mode 100755 index 00000000..14c9cfd2 --- /dev/null +++ b/run_continuous.sh @@ -0,0 +1,3 @@ +#!/bin/bash +argument="--continuous" +./run.sh "$argument"