Variables here should be marked local.

This commit is contained in:
Simon Gomizelj 2011-11-28 21:20:06 -05:00 committed by Evan LeCompte (Home)
commit 1471e5d70b

View file

@ -21,6 +21,8 @@
# Original found at http://www.shellperson.net/sprunge-pastebin-script/ # Original found at http://www.shellperson.net/sprunge-pastebin-script/
sprunge () { sprunge () {
local url syntax
if [[ -t 0 ]]; then if [[ -t 0 ]]; then
if [[ "$*" ]]; then if [[ "$*" ]]; then
if [[ -f "$*" ]]; then if [[ -f "$*" ]]; then