diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index a88ca74f..24a5109c 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -66,11 +66,13 @@ limit=${GIT_FILE_SIZE_LIMIT:-2000000} # Default 2MB limitInMB=$(( $limit / 1000000 )) function file_too_large(){ - filename=$0 + filename=$file filesize=$(( $1 / 2**20 )) filesize=$(( $1 \/ 2**20 ))\ncat <