Skip to content

Commit

Permalink
Merge pull request github#363 from github/jefeish/patch-1
Browse files Browse the repository at this point in the history
added input check and usage to `git-find-large-files`
  • Loading branch information
jefeish authored Aug 24, 2020
2 parents bfd05c8 + 6df9d7d commit 59766bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/git-find-large-files
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

if [ -z "$1" ]; then
MIN_SIZE_IN_KB=500
elif ! [[ "$1" =~ ^[0-9]+$ ]]; then
echo "Error: Expecting Integer Value" >&2
echo "Usage: $0 [MIN_SIZE_IN_KB]"
exit 1
else
MIN_SIZE_IN_KB=$1
fi
Expand Down

0 comments on commit 59766bc

Please sign in to comment.