diff --git a/bin/reproducible_fdroid_test.sh b/bin/reproducible_fdroid_test.sh index d44541f7e2a3d2b31e6c26d981bae341d10b5efe..7b95a634eb88a6d5fd69a28963d6c9bfcb2f6cfa 100755 --- a/bin/reproducible_fdroid_test.sh +++ b/bin/reproducible_fdroid_test.sh @@ -44,13 +44,15 @@ cleanup_all() { echo "$(date -u) - cleanup in progress..." killall adb killall gpg-agent - git -C $WORKSPACE/fdroiddata status + fdroiddata=$WORKSPACE/fdroiddata + git -C $fdroiddata status jobtmpdir=/tmp/$(basename $0)-$(date +%s)/ mkdir $jobtmpdir - for f in `git status | sed -En 's,\s+modified:\s+,,p'`; do - test -e $f || continue - ls -l $f - cp -a $f $jobtmpdir + for f in `git -C $fdroiddata status | sed -En 's,\s+modified:\s+,,p'`; do + path=$fdroiddata/$f + test -e $path || continue + ls -l $path + cp -a $path $jobtmpdir done echo "$(date -u) - cleanup done." }