fix [SC1117] (explicitly excaping \n
)
This commit is contained in:
parent
c950dd1e90
commit
c5098dfcc5
1 changed files with 2 additions and 2 deletions
|
@ -135,10 +135,10 @@ elif [ "$state" = "absent" ]; then
|
||||||
if grep -q "^${name}:" "$__object/explorer/passwd"; then
|
if grep -q "^${name}:" "$__object/explorer/passwd"; then
|
||||||
#user exists, but state != present, so delete it
|
#user exists, but state != present, so delete it
|
||||||
if [ -f "$__object/parameter/remove-home" ]; then
|
if [ -f "$__object/parameter/remove-home" ]; then
|
||||||
printf "userdel -r '%s' >/dev/null 2>&1\n" "${name}"
|
printf "userdel -r '%s' >/dev/null 2>&1\\n" "${name}"
|
||||||
echo "userdel -r" >> "$__messages_out"
|
echo "userdel -r" >> "$__messages_out"
|
||||||
else
|
else
|
||||||
printf "userdel '%s' >/dev/null 2>&1\n" "${name}"
|
printf "userdel '%s' >/dev/null 2>&1\\n" "${name}"
|
||||||
echo "userdel" >> "$__messages_out"
|
echo "userdel" >> "$__messages_out"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue