mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-07 12:19:45 +02:00
contrib/rpm: update build_clean.sh script to work with older version of git
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
08e8b3bd13
commit
66164c480d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue