Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue auto-response: also look for crappy game ID styling (ABCD-00000) #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions greeting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ if [ -f "LINKLIST.TXT" ]; then rm LINKLIST.TXT; fi
echo "'CHT/$a.cht' does not exist"
fi
done

for a in $(grep -Eo "[a-zA-Z]{4}-[0-9]{5}" "$1" | sed 's/-/_/g' | sed 's/./&./8')
do
if [ -f "CHT/$a.cht" ]
then
echo " - [\`$a.cht\`](https://github.com/PS2-Widescreen/OPL-Widescreen-Cheats/blob/main/CHT/$a.cht)" >> LINKLIST.TXT
else
echo "'CHT/$a.cht' does not exist"
fi
done

if [ -f "LINKLIST.TXT" ]
then
Expand All @@ -26,6 +36,6 @@ if [ -f "LINKLIST.TXT" ]; then rm LINKLIST.TXT; fi
fi
else
RETURN_CODE=1
echo "ERROR: expected argumment one to be a path to a file containing the issue report to analize"
echo "> ERROR: expected argumment one to be a path to a file containing the issue report to analize"
fi
exit $RETURN_CODE
exit $RETURN_CODE