From 4fbdcc36b902319984e1d3560ba1b313adcb1224 Mon Sep 17 00:00:00 2001 From: Adrian Malacoda Date: Sun, 24 Jun 2018 17:49:58 -0500 Subject: [PATCH] Add `sh` subcommand for compatibility with gitlab ci --- entrypoint | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 "$@";