aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkhash.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mkhash.c b/scripts/mkhash.c
index e26ca3a350..ce156e979d 100644
--- a/scripts/mkhash.c
+++ b/scripts/mkhash.c
@@ -823,8 +823,11 @@ int main(int argc, char **argv)
if (argc < 2)
return hash_file(t, NULL, add_filename);
- for (i = 0; i < argc - 1; i++)
- hash_file(t, argv[1 + i], add_filename);
+ for (i = 0; i < argc - 1; i++) {
+ int ret = hash_file(t, argv[1 + i], add_filename);
+ if (ret)
+ return ret;
+ }
return 0;
}