We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95554ab commit 159a819Copy full SHA for 159a819
patch-hack.sh
@@ -35,11 +35,10 @@ do
35
for style in "${styles[@]}"
36
do
37
stylePath="${HACK_PATH}/source/Hack-${style}.ufo/glyphs"
38
- lowercaseStyle=`echo "$style" | tr '[:upper:]' '[:lower:]'`
39
- alternatePath="./glyphs/${alternate}/${lowercaseStyle}/*.glif"
+ lowercaseStyle=$(echo "$style" | tr '[:upper:]' '[:lower:]')
+ alternatePath="./glyphs/${alternate}/${lowercaseStyle}"
40
41
- cp $alternatePath $stylePath
42
- if [ $? -ne 0 ]; then
+ if ! cp "$alternatePath"/*.glif "$stylePath"; then
43
echo "❌ Aborting patching of Hack, check errors above."
44
exit 1
45
fi
0 commit comments