Updated run.sh to be posix sh compliant
This commit is contained in:
parent
eaf320aa39
commit
9ca3d463f6
6
run.sh
6
run.sh
@ -1,4 +1,4 @@
|
||||
#! /usr/bin/env bash
|
||||
#! /usr/bin/env sh
|
||||
|
||||
# CreatePleromaApp, a python script to generate OAuth tokens for fedi
|
||||
# Copyright (C) 2024 Anon <@Anon@yandere.cc>
|
||||
@ -25,11 +25,9 @@ VENV='${RUN_DIR}/venv/bin/activate'
|
||||
ENTRY='${RUN_DIR}/create_app.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
|
||||
deactivate
|
||||
cd - > /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user