fix: support piped installer execution

This commit is contained in:
Qiufeng
2026-08-04 00:33:16 +08:00
parent a604460542
commit 882d8f559c
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -520,6 +520,6 @@ main() {
say "Local URL: http://127.0.0.1:${ERP_SERVER_PORT:-8091}"
}
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
if [[ "${BASH_SOURCE[0]:-$0}" == "$0" ]]; then
main "$@"
fi