Skip to content

Commit 0cc5ed6

Browse files
authored
Update doit.sh
- Remove hidden files - Rename files with ampersand to 'and'.
1 parent 7bb5d7f commit 0cc5ed6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

doit.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
export WGET_CMD=`which wget`
44
export UNZIP_CMD=`which unzip`
5-
URL="https://media.amazonwebservices.com/AWS-Design/Arch-Center/17.1.19_Update/AWS_Simple_Icons_EPS-SVG_v17.1.19.zip"
5+
URL="https://d1.awsstatic.com/webteam/architecture-icons/q2-2021/Asset-Package_04302021.7efed5c84a17020a6ddd81ef1f42e86ccd33a531.zip"
66

77
echo "JUST DO IT!! (waiting for enter keystroke)"
88
read
@@ -17,12 +17,16 @@ elif [[ $ret_code -eq 4 ]]; then
1717
echo "location unavailable"
1818
exit 1;
1919
fi
20-
$UNZIP_CMD icons.zip
20+
$UNZIP_CMD -q icons.zip
2121

2222
mkdir svg
23-
2423
find -name '*.svg' -exec cp {} svg/ \;
2524
find -name '* *' -print0 | xargs -0 rm
25+
find svg -name '\.*' -exec rm -v {} \;
26+
for svgfile in `ls svg/* | grep '&'`; do mv -v $svgfile svg/`basename $svgfile | sed -e s/\&/and/g` ; done
27+
28+
echo "Break here (ctrl-c) to do it manually or press enter to JUST DO IT!"
29+
read
2630

2731
make
2832

0 commit comments

Comments
 (0)