1
0
Fork 0
1Panel-Appstore/apps/bili-fetcher/1.6.9/scripts/init.sh

16 lines
271 B
Bash

#!/bin/bash
if [ -f .env ]; then
source .env
if [ ! -d $BILI_FETCHER_ROOT_PATH/config ]; then
mkdir -p $BILI_FETCHER_ROOT_PATH/config
fi
cp -rn ./config/* $BILI_FETCHER_ROOT_PATH/config/
echo "Check Finish."
else
echo "Error: .env file not found."
fi