diff mbox

[1/2] dim: Make sure nightly.conf hasn't disappeared

Message ID 20170926114524.19650-1-daniel.vetter@ffwll.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Vetter Sept. 26, 2017, 11:45 a.m. UTC
Suggested by Chris Wilson.

v2: Fix typo in the error msg (Chris).

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 dim | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Joonas Lahtinen Sept. 26, 2017, 12:01 p.m. UTC | #1
On Tue, 2017-09-26 at 13:45 +0200, Daniel Vetter wrote:
> Suggested by Chris Wilson.
> 
> v2: Fix typo in the error msg (Chris).
> 
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>

Jani suggested that this is bit late already, but I don't see why we
couldn't do both checks.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>

Regards, Joonas
diff mbox

Patch

diff --git a/dim b/dim
index db11d3f1cc68..69109a4f8666 100755
--- a/dim
+++ b/dim
@@ -220,6 +220,12 @@  if [ "$subcommand" != "setup" ] && [ "$subcommand" != "help" ] && [ "$subcommand
 			exit 1
 		fi
 	done
+	for f in $DIM_PREFIX/drm-rerere/nightly.conf; do
+		if [ ! -f $f ]; then
+			echoerr "$f is missing, please check your configuration and/or run dim setup"
+			exit 1
+		fi
+	done
 fi
 
 #