diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2010-08-21 10:07:26 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2010-10-02 11:56:28 -0400 |
commit | b9cc0b3e0a9ed7f5ce1181e94cf813544011547e (patch) | |
tree | d63bfd8fdafd3bd0d3ddc9c159e4dc8a5e8f783c /examples/data/scripts/download.sh | |
parent | 32aabff645692e78e2ef2c438d11ce2fafac9b91 (diff) |
Put `then' on the same line as `if'
Diffstat (limited to 'examples/data/scripts/download.sh')
-rwxr-xr-x | examples/data/scripts/download.sh | 3 |
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") |