mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Fix the behaviour of the sprunge plugin so that is preserves whitespaces and tabs.
This commit is contained in:
@@ -57,7 +57,7 @@ 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 read -r line ; do
|
while IFS= read -r line ; do
|
||||||
echo $line
|
echo $line
|
||||||
done | curl -F 'sprunge=<-' http://sprunge.us
|
done | curl -F 'sprunge=<-' http://sprunge.us
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user