diff --git a/entrypoint b/entrypoint index 14b4d09..74d07c7 100644 --- a/entrypoint +++ b/entrypoint @@ -3,6 +3,11 @@ REPO="$(pwd)" export PATH="/opt/gradle/bin:$PATH" +if [ "$1" == "sh" ]; then + "$@"; + exit $?; +fi + if [ ! -f ".fdroid.yml" ] && [ ! -f ".fdroid.json" ]; then if [ -d "fdroid" ]; then cp -Rv fdroid/* /fdroiddata/metadata; @@ -12,4 +17,4 @@ if [ ! -f ".fdroid.yml" ] && [ ! -f ".fdroid.json" ]; then find ./metadata -type f -name "*.txt" -exec sed -i "s:%REPO:$REPO:g" {} + fi -fdroid "$@" +fdroid "$@";