summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-05-14 15:19:24 +0200
committerThomas Haller <thaller@redhat.com>2014-05-14 15:19:24 +0200
commit66164c480d35ae333b8fb00f03194b92f3fc8289 (patch)
tree23f999d51bbc61cd59ead087660532d2d23cb846 /contrib
parent08e8b3bd1353ec79dde3c3d8e5fa4853e997c79c (diff)
downloadNetworkManager-66164c480d35ae333b8fb00f03194b92f3fc8289.tar.gz
contrib/rpm: update build_clean.sh script to work with older version of git
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/fedora/rpm/build_clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/fedora/rpm/build_clean.sh b/contrib/fedora/rpm/build_clean.sh
index 36d7ad1b09..89505e8946 100755
--- a/contrib/fedora/rpm/build_clean.sh
+++ b/contrib/fedora/rpm/build_clean.sh
@@ -24,7 +24,7 @@ cd "$GITDIR" || die "could not change to $GITDIR"
# check for a clean working directory.
# We ignore the /contrib directory, because this is where the automation
# scripts and the build results will be.
-if [[ "x$(git clean -ndx -e /contrib )" != x ]]; then
+if [[ "x$(git clean -ndx | grep '^Would remove contrib/.*$' -v)" != x ]]; then
die "The working copy is not clean. Refuse to run. Try git clean -e /contrib -dx -n"
fi