refactor: improve Minecraft automation scripts

Standardize shebang to #!/usr/bin/env bash
Add descriptive headers to all scripts
Make all scripts executable

Consistent with Unix best practices:
- Portable shebang usage
- Self-documenting code
- Proper file permissions
This commit is contained in:
m1ngsama 2025-12-08 10:30:00 +08:00
parent 2e55194f5c
commit 4ff60014df
3 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
# Minecraft server automated deployment
# Deploys mods and configuration to server directory
# 加载日志模块
source "$(dirname "$0")/logger.sh"

View file

@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
# Download Minecraft mods from Modrinth
# Uses requirements.txt to specify mods
# 加载日志模块
source "$(dirname "$0")/logger.sh"

View file

@ -1,4 +1,6 @@
#!/bin/bash
#!/usr/bin/env bash
# Logger utility for Minecraft automation scripts
# Provides consistent logging across all scripts
LOG_FILE="./logs/mod-install-log.txt"
mkdir -p "$(dirname "$LOG_FILE")"