public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] dim: Continue also for dry runs
@ 2017-07-27 10:59 Daniel Vetter
  2017-08-03 12:44 ` [Intel-gfx] " Jani Nikula
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Vetter @ 2017-07-27 10:59 UTC (permalink / raw)
  To: DRI Development; +Cc: Daniel Vetter, Intel Graphics Development, Daniel Vetter

It's a bit silly to have to spec both -d and -f to see what dim would
all complain about. And dry-run should never cause bad side-effects.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
---
 dim | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dim b/dim
index c0cbe352b165..96aaf7101d6b 100755
--- a/dim
+++ b/dim
@@ -126,6 +126,8 @@ function warn_or_fail
 {
 	if [[ $FORCE ]] ; then
 		echoerr "WARNING: $1, but continuing"
+	elif [[ $DRY ]] ; then
+		echoerr "WARNING: $1, but continuing dry-run"
 	else
 		echoerr "ERROR: $1, aborting"
 		exit 1
-- 
2.13.3

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-07  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 10:59 [PATCH] dim: Continue also for dry runs Daniel Vetter
2017-08-03 12:44 ` [Intel-gfx] " Jani Nikula
2017-08-07  8:55   ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox