[license] include .ps1, improve commit message and shebang first
All checks were successful
eden-license / license-header (pull_request) Successful in 54s

Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
This commit is contained in:
Caio Oliveira 2025-09-11 00:25:37 -03:00 committed by crueter
parent 0a301a1f97
commit 3f90405749
4 changed files with 11 additions and 8 deletions

View file

@ -79,7 +79,7 @@ for file in $FILES; do
EXT="${file##*.}"
case "$EXT" in
kts|kt|cpp|h) COMMENT_TYPE="//" ;;
cmake|sh) COMMENT_TYPE="#" ;;
cmake|sh|ps1) COMMENT_TYPE="#" ;;
*) continue ;;
esac ;;
esac
@ -151,7 +151,7 @@ if [ "$FIX" = "true" ]; then
EXT="${file##*.}"
case "$EXT" in
kts|kt|cpp|h) COMMENT_TYPE="//" ;;
cmake|sh) COMMENT_TYPE="#" ;;
cmake|sh|ps1) COMMENT_TYPE="#" ;;
*) continue ;;
esac
;;
@ -197,7 +197,7 @@ if [ "$FIX" = "true" ]; then
echo
echo "license-header.sh: COMMIT set to true, committing changes..."
git commit -m "[license] Fix license headers"
git commit -m "[license] Fix license headers [script]"
echo
echo "license-header.sh: Changes committed. You may now push."

View file

@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later

View file

@ -1,7 +1,7 @@
#!/bin/sh
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
#!/bin/sh
SUM=$(wget -q https://github.com/"$1"/archive/"$2".zip -O - | sha512sum)
echo "$SUM" | cut -d " " -f1

View file

@ -1,7 +1,7 @@
#!/bin/sh
# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
#!/bin/sh
SUM=$(wget -q "$1" -O - | sha512sum)
echo "$SUM" | cut -d " " -f1