about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 07:42:49 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 07:42:49 +0000
commite71bbefa44135f6e84912cd9ab824397dfb72286 (patch)
tree14c4dcff11949b3b5447646057df0685e62bc22b
parentbfcd464606817c21ed272e04425b4d728a356975 (diff)
downloaddtas-e71bbefa44135f6e84912cd9ab824397dfb72286.tar.gz
We may get a pause event when we do not have a valid current
hash.
-rwxr-xr-xbin/dtas-console4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dtas-console b/bin/dtas-console
index eb246ee..0cb14fa 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -157,7 +157,9 @@ begin
         event = w.res_wait
         case event
         when "pause"
-          pause = current['infile'] || current['command']
+          if current
+            pause = current['infile'] || current['command']
+          end
         when %r{\Afile }
           pause = nil
         end