forked from mirror_maker/misskey-ebooks-bot
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
360 B
22 lines
360 B
1 year ago
|
#! /usr/bin/env bash
|
||
|
|
||
|
ABS_PATH="$(readlink -f "$0")"
|
||
|
RUN_DIR="$(dirname "$ABS_PATH")"
|
||
|
|
||
|
# Relative paths to main script
|
||
|
ENTRY='rdbot.py'
|
||
|
|
||
|
# cd into the bot's root path and run
|
||
|
# shellcheck disable=SC2164
|
||
|
cd "$RUN_DIR"
|
||
|
python3.11 "$ENTRY"
|
||
|
|
||
|
RETURN_CODE="$?"
|
||
|
|
||
|
# Cleanup
|
||
|
# shellcheck disable=SC2164
|
||
|
# shellcheck disable=SC2103
|
||
|
cd - > /dev/null
|
||
|
|
||
|
exit "$RETURN_CODE"
|