mirror of https://github.com/Riesi/frog_emojis.git
Check for space in path
This commit is contained in:
parent
ed2d1ec18a
commit
0d4b7b9b54
|
@ -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=\"}
|
||||
|
|
Loading…
Reference in New Issue