@cryptotaxi247 / netdata-1 / commits / 062484b66

fix `test -x` check for uninstaller script (#16146)

fix uninstaller script `test -x` check

Ilya Mashchenko committed Oct 6, 2023 at 17:53 UTC 062484b66ae9c09778acad96580b68d911517ae5
1 file changed +1 -1
packaging/installer/kickstart.sh
+1 -1
@@ -815,7 +815,7 @@ uninstall() {
815 FLAGS="--yes"
816 fi
817
818 - if [ -x "${uninstaller}" ]; then
818 + if run_as_root test -x "${uninstaller}"; then
819 if [ "${DRY_RUN}" -eq 1 ]; then
820 progress "Would attempt to uninstall existing install with uninstaller script found at: ${uninstaller}"
821 return 0