aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/download.sh
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2010-08-21 10:07:26 -0400
committerGravatar Ben Boeckel <MathStuf@gmail.com>2010-10-02 11:56:28 -0400
commitb9cc0b3e0a9ed7f5ce1181e94cf813544011547e (patch)
treed63bfd8fdafd3bd0d3ddc9c159e4dc8a5e8f783c /examples/data/scripts/download.sh
parent32aabff645692e78e2ef2c438d11ce2fafac9b91 (diff)
Put `then' on the same line as `if'
Diffstat (limited to 'examples/data/scripts/download.sh')
-rwxr-xr-xexamples/data/scripts/download.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/data/scripts/download.sh b/examples/data/scripts/download.sh
index f6d34e9..0f051db 100755
--- a/examples/data/scripts/download.sh
+++ b/examples/data/scripts/download.sh
@@ -14,8 +14,7 @@ export http_proxy
test "x$url" = "x" && { echo "you must supply a url! ($url)"; exit 1; }
# only changes the dir for the $get sub process
-if echo "$url" | grep -E '.*\.torrent' >/dev/null;
-then
+if echo "$url" | grep -E '.*\.torrent' >/dev/null; then
( cd "$dest"; $GET "$url")
else
( cd "$dest"; $GET "$url")