Updated run.sh to only use the sh shell

This commit is contained in:
Anon 2024-02-25 21:27:06 -08:00
parent 5d51efefa4
commit 030999c720

4
run.sh
View File

@ -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="$?"