Skip to content

Commit

Permalink
Make compile styles script POSIX compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
maxatdetroit committed Jul 31, 2024
1 parent a23e2a3 commit 3ad2163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/compile_styles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ compile_components() {

replace_rem_w_em () {
echo "Replacing REMs with EMs..."
sed -i -r "s|([0-9])rem|\1em|g" "$1"
sed -i.bak -E "s|([0-9])rem|\1em|g" "$1" && rm "$1.bak"
if [ $? -ne 0 ]; then
echo "Failed to replace REMs with EMs in $1... Aborting."
exit 1
Expand All @@ -118,4 +118,4 @@ format_bootstrap () {
# Call the functions
compile_components
compile_bootstrap
exit $?
exit $?

0 comments on commit 3ad2163

Please sign in to comment.