From db071294167f61e519d3f10a94bc57bcd3564424 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 17 Mar 2017 10:29:47 +0100 Subject: [PATCH] Use -ef to test whether source and build directory are the same --- cscripts/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index 0ad3188..d6a4ad1 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -241,7 +241,7 @@ uninstall-hook: # Files to be removed in build directory clean-local: - @if test '@top_srcdir@' != '@top_builddir@'; then \ + @if ! [ '@top_srcdir@' -ef '@top_builddir@' ]; then \ rm -rf $(top_builddir)/cscripts/cs*.py; \ rm -rf $(top_builddir)/cscripts/obsutils.py; \ rm -rf $(top_builddir)/cscripts/modutils.py; \ -- libgit2 0.21.4