mirror of
https://github.com/m1ngsama/automa.git
synced 2025-12-25 02:56:05 +00:00
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:
parent
2e55194f5c
commit
4ff60014df
3 changed files with 9 additions and 3 deletions
|
|
@ -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"
|
source "$(dirname "$0")/logger.sh"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
source "$(dirname "$0")/logger.sh"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
LOG_FILE="./logs/mod-install-log.txt"
|
||||||
mkdir -p "$(dirname "$LOG_FILE")"
|
mkdir -p "$(dirname "$LOG_FILE")"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue