1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

sprunge-plugin: Remove the unnecessary while loop.

This commit is contained in:
Thomas (nezza-_-) Roth 2012-01-16 13:26:08 +01:00
parent 6040d72e2a
commit 54a30c4701

View file

@ -57,8 +57,6 @@ sprunge() {
fi fi
else else
echo Using input from a pipe or STDIN redirection... >&2 echo Using input from a pipe or STDIN redirection... >&2
while IFS= read -r line ; do curl -F 'sprunge=<-' http://sprunge.us
echo $line
done | curl -F 'sprunge=<-' http://sprunge.us
fi fi
} }