From b9b2fa323658ae776bd0ff7052a0b13b6ef41d3e Mon Sep 17 00:00:00 2001 From: Anon Date: Sun, 25 Feb 2024 21:28:04 -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 354ca35..acb5417 100755 --- a/run.sh +++ b/run.sh @@ -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