1
0
Fork 0
forked from nuttx/nuttx-update

macos : fix “sed: -I or -i may not be used with stdin”

tools/Unix.mk
added $(call DELFILE, .config.backup)

tools/process-config.sh
sed-i -> sed -i.backup
This commit is contained in:
simbit18 2024-11-04 12:25:04 +01:00 committed by Xiang Xiao
parent 3e605c1f46
commit 3c4053a385
2 changed files with 2 additions and 1 deletions

View file

@ -799,6 +799,7 @@ endif
$(call DELFILE, .config)
$(call DELFILE, .config.old)
$(call DELFILE, .config.orig)
$(call DELFILE, .config.backup)
$(call DELFILE, .gdbinit)
# Application housekeeping targets. The APPDIR variable refers to the user

View file

@ -57,7 +57,7 @@ process_file() {
fi
else
local key_config="$(echo "$line" | cut -d= -f1)="
sed -i "/$key_config/d" $output_file
sed -i.backup "/$key_config/d" $output_file
echo "$line" >> $output_file
fi
done < "$input_file"