加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
entrypoint.sh 500 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# Check if the TARGET_APP environment variable is set
if [ -z "$TARGET_APP" ]
then
echo "TARGET_APP environment variable is not set. Exiting."
exit 1
fi
# Check if the target executable exists and is executable
if [ -x "/sponge/bin/$TARGET_APP" ]
then
echo "Running /sponge/bin/$TARGET_APP with arguments: $@"
/sponge/bin/"$TARGET_APP" "$@" # Execute the target with additional arguments
else
echo "Target $TARGET_APP does not exist or is not executable. Exiting."
exit 1
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化