fix that stupid stdin is truncated bug again

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2014-09-25 16:35:19 +02:00
parent 68586a0c3d
commit eed058426a

View file

@ -74,5 +74,6 @@ while read key; do
if [ -f "$__object/parameter/comment" ]; then
set -- "$@" --comment "$(cat "$__object/parameter/comment")"
fi
__ssh_authorized_key "$@"
# Ensure __ssh_authorized_key does not read stdin
__ssh_authorized_key "$@" < /dev/null
done < "$__object/parameter/key"