From 2542201f87eb4625c8c56dfc451e5275a06d67d3 Mon Sep 17 00:00:00 2001 From: Loes Immens Date: Thu, 3 Oct 2024 10:10:24 +0200 Subject: [PATCH] FDP-2318: added copyright to pre-commit script Signed-off-by: Loes Immens --- scripts/pre-commit | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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