From eaa96e94e27c1205a9f261f57f3c434b570f61da Mon Sep 17 00:00:00 2001 From: mukan-bot Date: Thu, 16 Oct 2025 20:39:03 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E9=96=A2=E6=95=B0=E3=81=AE?= =?UTF-8?q?=E5=87=BA=E5=8A=9B=E6=96=B9=E6=B3=95=E3=82=92=E7=B5=B1=E4=B8=80?= =?UTF-8?q?=E3=81=97=E3=80=81=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0=E3=81=AE?= =?UTF-8?q?=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=81=BF=E6=96=B9=E6=B3=95=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/start.sh b/start.sh index b2c52ec..d339f02 100644 --- a/start.sh +++ b/start.sh @@ -13,19 +13,19 @@ NC='\033[0m' # No Color # ログ関数 log_info() { - echo -e "${GREEN}[INFO]${NC} $1" + printf "${GREEN}[INFO]${NC} %s\n" "$1" } log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" + printf "${YELLOW}[WARN]${NC} %s\n" "$1" } log_error() { - echo -e "${RED}[ERROR]${NC} $1" + printf "${RED}[ERROR]${NC} %s\n" "$1" } log_blue() { - echo -e "${BLUE}[INFO]${NC} $1" + printf "${BLUE}[INFO]${NC} %s\n" "$1" } # ヘルプメッセージ @@ -132,7 +132,7 @@ start_container() { fi # 環境変数を読み込み - source .env + . ./.env # 必須変数の確認 if [ -z "$EMAIL_USER" ] || [ -z "$EMAIL_PASSWORD" ] || [ -z "$DISCORD_WEBHOOK_URL" ]; then @@ -268,7 +268,7 @@ run_python() { # 環境変数を読み込んで実行 log_info "アプリケーションを起動しています..." - export $(cat .env | xargs) + . ./.env python3 app.py }