From 3ad216396ca1ed73fd8bf658d98984d713fcf346 Mon Sep 17 00:00:00 2001 From: Max Morgan Date: Wed, 31 Jul 2024 15:00:49 -0400 Subject: [PATCH] Make compile styles script POSIX compliant --- scripts/compile_styles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compile_styles.sh b/scripts/compile_styles.sh index e4986c9c..d25a50be 100755 --- a/scripts/compile_styles.sh +++ b/scripts/compile_styles.sh @@ -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 @@ -118,4 +118,4 @@ format_bootstrap () { # Call the functions compile_components compile_bootstrap -exit $? \ No newline at end of file +exit $?