Updated run.sh to only use the sh shell
This commit is contained in:
parent
be1803c174
commit
b9b2fa3236
4
run.sh
4
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
|
# Dynamic Cloudflare DNS, a way to automate DNS changes for Cloudflare
|
||||||
# Copyright (C) 2022 Anon <@Anon@yandere.cc>
|
# 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 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" "$@"
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user