fdroid-repository/fdroid-update.sh

14 lines
283 B
Bash
Raw Normal View History

2018-11-09 09:29:18 +01:00
#!/bin/bash
2018-11-10 11:34:16 +01:00
set -eo pipefail
EVENT=$1
DIR=$2
FILE=$3
2018-11-19 21:43:09 +01:00
if [ -z "$FILE" ] || [[ "$FILE" == *.apk ]] || [[ "$FILE" == *.yml ]]; then
. /fdroid/bin/activate && fdroid update --clean --rename-apks --use-date-from-apk --delete-unknown
. /fdroid/bin/activate && fdroid deploy
2018-11-10 11:34:16 +01:00
fi