Skip to content

Commit 98746a5

Browse files
authored
Merge pull request #45 from Saford91/master
Fix typo in check_file_stat
2 parents 7f88e36 + ddd2b39 commit 98746a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lbnl_file.nhc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function check_file_stat() {
303303
return 1
304304
elif [[ ${NHC_STAT_MODE[$IDX]} -ne $MODE_IS ]]; then
305305
# File permissions should exactly equal $MODE_IS, but they don't. Flag it.
306-
die 1 "$FUNCNAME: File \"$FNAME\" has permissions ${NHC_STAT_MINOR[$IDX]}; should be $MODE_IS"
306+
die 1 "$FUNCNAME: File \"$FNAME\" has permissions ${NHC_STAT_MODE[$IDX]}; should be $MODE_IS"
307307
return 1
308308
fi
309309
fi
@@ -313,7 +313,7 @@ function check_file_stat() {
313313
return 1
314314
elif [[ $((NHC_STAT_MODE[IDX] & MODE_MATCHES)) -ne $MODE_MATCHES ]]; then
315315
# File permissions should include those specified in $MODE_MATCHES, but they don't. Flag it.
316-
die 1 "$FUNCNAME: File \"$FNAME\" has permissions ${NHC_STAT_MINOR[$IDX]}; should be at least $MODE_MATCHES"
316+
die 1 "$FUNCNAME: File \"$FNAME\" has permissions ${NHC_STAT_MODE[$IDX]}; should be at least $MODE_MATCHES"
317317
return 1
318318
fi
319319
fi

0 commit comments

Comments
 (0)