mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
In-place SED edit can mess up permissions on Windows
This commit is contained in:
parent
56e5bc4268
commit
9e21e8d9d7
1 changed files with 5 additions and 1 deletions
|
@ -205,7 +205,11 @@ install -m 644 "${src_config}" "${dest_config}" || \
|
|||
# file
|
||||
|
||||
if [ "X${defappdir}" = "Xy" ]; then
|
||||
sed -i -e "/^CONFIG_APPS_DIR/d" "${dest_config}"
|
||||
# In-place edit can mess up permissions on Windows
|
||||
# sed -i -e "/^CONFIG_APPS_DIR/d" "${dest_config}"
|
||||
sed -e "/^CONFIG_APPS_DIR/d" "${dest_config}" > "${dest_config}-temp"
|
||||
mv "${dest_config}-temp" "${dest_config}"
|
||||
|
||||
echo "" >> "${dest_config}"
|
||||
echo "# Application configuration" >> "${dest_config}"
|
||||
echo "" >> "${dest_config}"
|
||||
|
|
Loading…
Reference in a new issue