aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-17 12:10:55 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-17 12:10:55 +0200
commit91d0e2cd07f58c44b25e78ec15fee26ede676ddb (patch)
tree2b3597308fce9e99939fa29ada74ea41b4057d19
parent71a2e5b51dac875b121b7c1fc0be88407c31486f (diff)
downloaddwim-91d0e2cd07f58c44b25e78ec15fee26ede676ddb.tar.gz
dwim: Exit if header file was not found
-rwxr-xr-xdwim1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwim b/dwim
index a1ecacb..a5d8030 100755
--- a/dwim
+++ b/dwim
@@ -91,6 +91,7 @@ for ($phrase) {
}
close $h;
fail 'header file not found';
+ exit 1;
}
if (/(?:\+\+\+|---) (\S+) .*$@@ -(\d+)/ms) {