diff --git a/scripts/pre-commit b/scripts/pre-commit index d8df2b1..f294e16 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -1,4 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: Copyright Contributors to the GXF project +# +# SPDX-License-Identifier: Apache-2.0 + echo "*********************************************************" echo "Running git pre-commit hook. Running Spotless Apply... " echo "*********************************************************" @@ -18,7 +22,7 @@ if [ "$status" = 0 ] ; then # Add staged file changes to git for file in $stagedFiles; do if test -f "$file"; then - git add $file + git add "$file" fi done #Exit