From 030999c72060dbee077da81e29ab20f8aa6700fa Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 25 Feb 2024 21:27:06 -0800 Subject: [PATCH] Updated run.sh to only use the sh shell --- run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index cd9616e..2d383b8 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env bash +#! /usr/bin/env sh # Danbooru Bot, an image posting bot for Pleroma # Copyright (C) 2022 Anon <@Anon@yandere.cc> @@ -27,7 +27,7 @@ ENTRY='./src/main.py' # cd into the bot's root path, set up the virtual environment, and run cd "$RUN_DIR" [ ! -f "$VENV" ] && echo "Virtual environment not found: ${VENV}" && cd - > /dev/null && exit 1 -source "$VENV" +. "$VENV" "$ENTRY" "$@" RETURN_CODE="$?"