Updated run.sh to only use the sh shell

This commit is contained in:
Anon 2024-02-25 21:27:37 -08:00
parent 116e8ef72b
commit 3cd5cfd2b0

4
run.sh
View File

@ -1,4 +1,4 @@
#! /usr/bin/env bash #! /usr/bin/env sh
# Yandere Lewd Bot, an image posting bot for Pleroma # Yandere Lewd Bot, an image posting bot for Pleroma
# Copyright (C) 2022 Anon <@Anon@yandere.cc> # 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 into the bot's root path, set up the virtual environment, and run
cd "$RUN_DIR" cd "$RUN_DIR"
[ ! -f "$VENV" ] && echo "Virtual environment not found: ${VENV}" && cd - > /dev/null && exit 1 [ ! -f "$VENV" ] && echo "Virtual environment not found: ${VENV}" && cd - > /dev/null && exit 1
source "$VENV" . "$VENV"
"$ENTRY" "$@" "$ENTRY" "$@"
RETURN_CODE="$?" RETURN_CODE="$?"