🧑‍💻 Strip #errors in Configurations deployment

This commit is contained in:
Scott Lahteine
2022-04-10 08:43:11 -05:00
committed by InsanityAutomation
parent 331f1f5d4b
commit d352f036e0
Executable → Regular
+1 -2
View File
@@ -87,8 +87,7 @@ if [[ $ACTION == "init" ]]; then
# Strip all #error lines
IFS=$'\n'; set -f
for fn in $( find $TEMP/config -type f -name "Configuration.h" ); do
$SED -i~ -e "20,30{/#error/d}" "$fn"
rm "$fn~"
$SED -i "20,30{/#error/d}" $fn
done
unset IFS; set +f