Add sh subcommand for compatibility with gitlab ci

This commit is contained in:
Adrian Malacoda 2018-06-24 17:49:58 -05:00
parent 0a157d1c01
commit 4fbdcc36b9

View File

@ -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 "$@";