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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suggested by Chris Wilson.

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

Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>
---
 dim | 6 ++++++
 1 file changed, 6 insertions(+)

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
 
 #
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux