Skip to content

Commit 59766bc

Browse files
authored
Merge pull request github#363 from github/jefeish/patch-1
added input check and usage to `git-find-large-files`
2 parents bfd05c8 + 6df9d7d commit 59766bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/git-find-large-files

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
if [ -z "$1" ]; then
2323
MIN_SIZE_IN_KB=500
24+
elif ! [[ "$1" =~ ^[0-9]+$ ]]; then
25+
echo "Error: Expecting Integer Value" >&2
26+
echo "Usage: $0 [MIN_SIZE_IN_KB]"
27+
exit 1
2428
else
2529
MIN_SIZE_IN_KB=$1
2630
fi

0 commit comments

Comments
 (0)