Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ while [[ "$#" -gt 0 ]]; do
case $1 in
--script) script="$2"; shift ;;
--name) name="$2"; shift ;;
--*) args+=("$1=$2"); shift ;;
*) echo "Unknown parameter passed: $1"; exit 1 ;;
--*) shift ;;
*) shift ;;
esac
shift
done
Expand All @@ -178,7 +178,6 @@ fi

# Run the Python script with the arguments using pm2
echo "Running $script with the following arguments with pm2:"
echo "${args[@]}"
pm2 start "$script" --name $proc_name --interpreter python3 -- "${args[@]}"

# Check if packages are installed.
Expand Down