fix: bug
This commit is contained in:
16
start.sh
Executable file
16
start.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
PROJECT_ROOT=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
|
||||
if [ ! -f "${PROJECT_ROOT}/scripts/docker-up.sh" ]; then
|
||||
echo "未找到脚本: scripts/docker-up.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if command -v bash >/dev/null 2>&1; then
|
||||
exec bash "${PROJECT_ROOT}/scripts/docker-up.sh"
|
||||
fi
|
||||
|
||||
echo "当前系统未找到 bash,无法运行 scripts/docker-up.sh"
|
||||
exit 1
|
||||
Reference in New Issue
Block a user