Skip to content

Commit

Permalink
added more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
babakamyljanovssw committed Sep 20, 2024
1 parent 8925dd4 commit e793b51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test-check-extension-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
for filename in "${myarray[@]}"
do
echo "Checking file: $filename"
fileExtension=$(echo "${filename##*.}" | sed 's/["\]]//g')
# Extract the extension (everything after the last dot)
fileExtension="${filename##*.}"
# Remove unwanted characters from the extension (specifically ] and ")
fileExtension=$(echo "$fileExtension" | tr -d '"]')
lowercaseFileExtension=$(echo "$fileExtension" | tr '[:upper:]' '[:lower:]')
echo "File extension: $fileExtension"
echo "Lowercase file extension: $lowercaseFileExtension"
if [ $lowercaseFileExtension == 'gif' ] || \
Expand Down

0 comments on commit e793b51

Please sign in to comment.