Message ID | 20170926114524.19650-1-daniel.vetter@ffwll.ch (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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 --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 #
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(+)