nextcloud/tests/travis/changed_app.sh
Andy Scherzinger 0b20dd6755
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-22 19:58:12 +02:00

20 lines
350 B
Bash
Executable File

#!/bin/bash
#
# SPDX-FileCopyrightText: 2015 ownCloud, Inc.
# SPDX-License-Identifier: AGPL-3.0-only
#
# @author Joas Schilling
# @author Thomas Müller
# @copyright 2015 Thomas Müller thomas.mueller@tmit.eu
#
APP=$1
FOUND=$(git diff ${TRAVIS_COMMIT_RANGE} | grep -- "^+++ b/apps/$APP/")
if [ "x$FOUND" != 'x' ]; then
echo "1"
else
echo "0"
fi