Updated run.sh to only use the sh shell

This commit is contained in:
Anon 2024-02-25 21:28:04 -08:00
parent be1803c174
commit b9b2fa3236

4
run.sh
View File

@ -1,4 +1,4 @@
#! /usr/bin/env bash
#! /usr/bin/env sh
# Dynamic Cloudflare DNS, a way to automate DNS changes for Cloudflare
# Copyright (C) 2022 Anon <@Anon@yandere.cc>
@ -31,7 +31,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" "$@"
# Cleanup