We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6efaeed commit ac27867Copy full SHA for ac27867
1 file changed
linux/postrm
@@ -7,4 +7,7 @@ if [ -x /usr/bin/systemctl ]; then
7
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || true
8
fi
9
10
-echo "If no longer needed, remove ${USERNAME} manually: userdel ${USERNAME}"
+if id -u ${USERNAME} >/dev/null 2>&1
11
+then
12
+ echo "If no longer needed, remove ${USERNAME} manually: userdel ${USERNAME}"
13
+fi
0 commit comments