Fix windows config editor (#21957)
Fix conditional check for editor configuration in Windows packaging script
Stelios Fragkakis committed
Mar 17, 2026 at 20:08 UTC
dfbf1a527b73a2f1789ed79b5a05f9b3afc98822
1 file changed
+1
-2
packaging/windows/package-windows.sh
+1
-2
@@ -45,7 +45,7 @@ rm -rf /opt/netdata/msys64/
45
${GITHUB_ACTIONS+echo "::endgroup::"}
46
47
${GITHUB_ACTIONS+echo "::group::Configure Editor"}
48
-if [ ! -f "/opt/netdata/etc/profile" ]; then
48
+if [ -f "/opt/netdata/etc/profile" ]; then
49
echo 'EDITOR="/usr/bin/nano.exe"' >> /opt/netdata/etc/profile
50
fi
51
${GITHUB_ACTIONS+echo "::endgroup::"}
@@ -56,4 +56,3 @@ ${GITHUB_ACTIONS+echo "::endgroup::"}
56
#cp "${build}/usr/bin/netdata_driver.*" "${build}/driver"
57
#powershell.exe -ExecutionPolicy Bypass -File "${repo_root}/packaging/windows/generate-driver-catalog.ps1"
58
#${GITHUB_ACTIONS+echo "::endgroup::"}
59
-