From a534e430d5a28d358022cb14f418cf82999ec17c Mon Sep 17 00:00:00 2001 From: Steven Jones Date: Sat, 15 Oct 2011 18:47:55 +0100 Subject: [PATCH] Remove the bash conditional, and use the test command. Magic. --- debian/rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 2de0bf92..cd1c964c 100755 --- a/debian/rules +++ b/debian/rules @@ -9,11 +9,11 @@ override_dh_install: cp -r "$(CURDIR)/db/" "$(CURDIR)/dns/" "$(CURDIR)/http/" "$(CURDIR)/aegir.make" "$(CURDIR)/platform/" "$(CURDIR)"/*.inc "$(CURDIR)"/*.php "$(CURDIR)"/*.info "$(CURDIR)/debian/aegir-provision/usr/share/drush/commands/provision/" + # We need this nasty hack, because we added a directory. # TODO: this is really lame, there must be a better way to do this? - if [ -d "$(CURDIR)/tests" ]; then - cp -r "$(CURDIR)/tests/" "$(CURDIR)/debian/aegir-provision/usr/share/drush/commands/provision/" - fi + test -d "$(CURDIR)/tests" && cp -r "$(CURDIR)/tests/" "$(CURDIR)/debian/aegir-provision/usr/share/drush/commands/provision/" + cp "$(CURDIR)/debian/aegir-provision.lintian" "$(CURDIR)/debian/aegir-provision/usr/share/lintian/overrides/aegir-provision" DOMAIN?=$(shell hostname -f) -- GitLab