0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-25 21:43:55 +00:00

fix test -x check for uninstaller script ()

fix uninstaller script `test -x` check
This commit is contained in:
Ilya Mashchenko 2023-10-06 17:53:15 +03:00 committed by GitHub
parent 18e729d670
commit 062484b66a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -815,7 +815,7 @@ uninstall() {
FLAGS="--yes"
fi
if [ -x "${uninstaller}" ]; then
if run_as_root test -x "${uninstaller}"; then
if [ "${DRY_RUN}" -eq 1 ]; then
progress "Would attempt to uninstall existing install with uninstaller script found at: ${uninstaller}"
return 0