Skip to content

Commit

Permalink
ci: fix redirection of stderr
Browse files Browse the repository at this point in the history
Fix redirection of stderr in run_license_check.sh.

Signed-off-by: Nawal Kishor <nkishor@marvell.com>
Change-Id: Ie531db8891147b6cd8d9a3665ea616b242c8b47e
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/dataplane/dpu-offload/+/136685
Reviewed-by: Ashwin Sekhar T K <asekhar@marvell.com>
Tested-by: sa_ip-toolkits-Jenkins <sa_ip-toolkits-jenkins@marvell.com>
  • Loading branch information
Nawal Kishor authored and jerinjacobk committed Oct 14, 2024
1 parent b9e5961 commit 6d378dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ci/checkpatch/run_license_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,29 +74,29 @@ for F in $FILES; do

echo -n "Checking $F"
# MIT License Check
grep ' SPDX-License-Identifier: Marvell-MIT$' $F 2>&1 >/dev/null
grep ' SPDX-License-Identifier: Marvell-MIT$' $F &> /dev/null
C1=$?
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F 2>&1 >/dev/null
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F &> /dev/null
C2=$?
if [[ $C1 == "0" ]] || [[ $C2 == "0" ]]; then
echo -n " ... OK"
continue
fi

# Proprietary License Check
grep ' SPDX-License-Identifier: Marvell-Proprietary$' $F 2>&1 >/dev/null
grep ' SPDX-License-Identifier: Marvell-Proprietary$' $F &> /dev/null
C1=$?
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F 2>&1 >/dev/null
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F &> /dev/null
C2=$?
if [[ $C1 == "0" ]] || [[ $C2 == "0" ]]; then
echo -n " ... OK"
continue
fi

# GPL-2.0 License Check
grep ' SPDX-License-Identifier: GPL-2.0$' $F 2>&1 >/dev/null
grep ' SPDX-License-Identifier: GPL-2.0$' $F &> /dev/null
C1=$?
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F 2>&1 >/dev/null
grep ' Copyright (c) 202[[:digit:]] Marvell.$' $F &> /dev/null
C2=$?
if [[ $C1 == "0" ]] || [[ $C2 == "0" ]]; then
echo -n " ... OK"
Expand Down

0 comments on commit 6d378dd

Please sign in to comment.