aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-28 11:35:34 +0200
committerThomas White <taw@physics.org>2018-06-28 11:36:12 +0200
commit960e33e15dacb42e107100900ccd4c23ca9d5fa6 (patch)
treeada3e2a65f0d831738958820d4070639a54a3854
parent8a0f5249127dc2fab6d4d34611c0002b5cde2b8e (diff)
Fix check-near-bragg
-rwxr-xr-xscripts/check-near-bragg4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/check-near-bragg b/scripts/check-near-bragg
index 7fd7d013..632e1285 100755
--- a/scripts/check-near-bragg
+++ b/scripts/check-near-bragg
@@ -15,7 +15,9 @@ if ( !($args eq "") ) {
printf("Using default arguments for hdfsee: %s\n", $args);
}
-open(FH, $ARGV[0]);
+my $file = $ARGV[0];
+
+open(FH, $file);
open(TMP, "> list.tmp");
my $statbuf = stat($file);