[__ssh_authorized_keys] Fix incorrectly escaped variable

This commit is contained in:
Dennis Camera 2019-10-02 15:38:38 +02:00
parent 7981f81dcd
commit f57ce648a3

View file

@ -35,10 +35,10 @@ else
case $owner
in
[0-9][0-9]*)
gid=$(awk -F: "\$3 == \"${owner}\" { print $4 }" /etc/passwd)
gid=$(awk -F: "\$3 == \"${owner}\" { print \$4 }" /etc/passwd)
;;
*)
gid=$(awk -F: "\$1 == \"${owner}\" { print $4 }" /etc/passwd)
gid=$(awk -F: "\$1 == \"${owner}\" { print \$4 }" /etc/passwd)
;;
esac