From 3cd5cfd2b04a7f76542b098f8e4c8fd3a979c7e0 Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 25 Feb 2024 21:27:37 -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 2bf11e4..71dcaaa 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ -#! /usr/bin/env bash +#! /usr/bin/env sh # Yandere Lewd 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="$?"