forked from Riesi/frog_emojis_old
Check for space in path
This commit is contained in:
parent
7d162f40f0
commit
ce89334571
|
@ -13,7 +13,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
Test-SVGs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -31,6 +31,12 @@ jobs:
|
||||||
for f in ./**/*.svg
|
for f in ./**/*.svg
|
||||||
do
|
do
|
||||||
echo "Checking '$f'"
|
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
|
# Gets everything in between the viewBox quotes
|
||||||
vbStr=$(cat $f)
|
vbStr=$(cat $f)
|
||||||
vbStr=${vbStr##*viewBox=\"}
|
vbStr=${vbStr##*viewBox=\"}
|
||||||
|
|
Loading…
Reference in New Issue