added missing escapes to uninstaller user and group checks
Costa Tsaousis (ktsaou) committed
Jun 1, 2018 at 00:37 UTC
d1e3a63dfface96dcc9fc6b9a8b435952ccb49a1
1 file changed
+3
-3
netdata-installer.sh
+3
-3
@@ -1086,7 +1086,7 @@ if [ -f /etc/cron.daily/netdata-updater ]
1086
fi
1087
1088
portable_check_user_exists netdata
1089
-if [ $? -eq 0 ]
1089
+if [ \$? -eq 0 ]
1090
then
1091
echo
1092
echo "You may also want to remove the user netdata"
@@ -1095,7 +1095,7 @@ if [ $? -eq 0 ]
1095
fi
1096
1097
portable_check_group_exists netdata > /dev/null
1098
-if [ $? -eq 0 ]
1098
+if [ \$? -eq 0 ]
1099
then
1100
echo
1101
echo "You may also want to remove the group netdata"
@@ -1106,7 +1106,7 @@ fi
1106
for g in ${NETDATA_ADDED_TO_GROUPS}
1107
do
1108
portable_check_group_exists \$g > /dev/null
1109
- if [ $? -eq 0 ]
1109
+ if [ \$? -eq 0 ]
1110
then
1111
echo
1112
echo "You may also want to remove the netdata user from the \$g group"