Skip to content

Commit

Permalink
Update doit.sh
Browse files Browse the repository at this point in the history
- Remove hidden files
- Rename files with ampersand to 'and'.
  • Loading branch information
dariosusman authored May 19, 2021
1 parent 7bb5d7f commit 0cc5ed6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions doit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

mkdir svg

find -name '*.svg' -exec cp {} svg/ \;
find -name '* *' -print0 | xargs -0 rm
find svg -name '\.*' -exec rm -v {} \;
for svgfile in `ls svg/* | grep '&'`; do mv -v $svgfile svg/`basename $svgfile | sed -e s/\&/and/g` ; done

echo "Break here (ctrl-c) to do it manually or press enter to JUST DO IT!"
read

make

Expand Down

1 comment on commit 0cc5ed6

@dariosusman
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to add. This also takes the latest package and makes unzip to quietly ...unzip the files.

Please sign in to comment.