Skip to content
Snippets Groups Projects
Commit 9e21e8d9 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

In-place SED edit can mess up permissions on Windows

parent 56e5bc42
No related branches found
No related tags found
No related merge requests found
......@@ -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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment