Check for space in path

This commit is contained in:
Miepee 2022-02-04 15:15:12 +01:00 committed by Riesi
parent ed2d1ec18a
commit 0d4b7b9b54
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ on:
workflow_dispatch:
jobs:
build:
Test-SVGs:
runs-on: ubuntu-latest
steps:
@ -31,6 +31,12 @@ jobs:
for f in ./**/*.svg
do
echo "Checking '$f'"
# Checking if file contains space in path
if [[ $f == *\ * ]] ; then
errArr+=("$f contains a space!")
fi
# Gets everything in between the viewBox quotes
vbStr=$(cat $f)
vbStr=${vbStr##*viewBox=\"}