aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/download.sh
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 19:46:42 -0500
committerGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 20:28:43 -0500
commitbfbd8eaf428b8cf04c88cc7acdcf9230c82120b4 (patch)
tree90f09c710ebe8de8b84b74d1bffff8cadcfbdcf2 /examples/data/scripts/download.sh
parent1c7090b125ddf75c2646976f74ec3fdee8c34161 (diff)
Use the -e flag on sed calls
Diffstat (limited to 'examples/data/scripts/download.sh')
-rwxr-xr-xexamples/data/scripts/download.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh
index db0d8ac..a382d9f 100755
--- a/examples/data/scripts/download.sh
+++ b/examples/data/scripts/download.sh
@@ -12,7 +12,7 @@
uri=$1
# a filename suggested by the server or based on the URL
-suggested_filename=${2:-$(echo "$uri" | sed 's/\W/-/g')}
+suggested_filename=${2:-$(echo "$uri" | sed -e 's/\W/-/g')}
# the mimetype of the file being downloaded
content_type=$3