Add sh
subcommand for compatibility with gitlab ci
This commit is contained in:
parent
0a157d1c01
commit
4fbdcc36b9
@ -3,6 +3,11 @@
|
|||||||
REPO="$(pwd)"
|
REPO="$(pwd)"
|
||||||
export PATH="/opt/gradle/bin:$PATH"
|
export PATH="/opt/gradle/bin:$PATH"
|
||||||
|
|
||||||
|
if [ "$1" == "sh" ]; then
|
||||||
|
"$@";
|
||||||
|
exit $?;
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f ".fdroid.yml" ] && [ ! -f ".fdroid.json" ]; then
|
if [ ! -f ".fdroid.yml" ] && [ ! -f ".fdroid.json" ]; then
|
||||||
if [ -d "fdroid" ]; then
|
if [ -d "fdroid" ]; then
|
||||||
cp -Rv fdroid/* /fdroiddata/metadata;
|
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" {} +
|
find ./metadata -type f -name "*.txt" -exec sed -i "s:%REPO:$REPO:g" {} +
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fdroid "$@"
|
fdroid "$@";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user