Good point. Efficiency is important, and my previous
script had a lot of unnecessary repeating. I've
rewritten it to be shorter and sweeter (and not have 6
if-thens in a row!)
#!/bin/bash
# Script for DLL downloading
if [ "$compress" <> 'tar' ] and if [ "$compress" <>
'tar.gzip' ] and if [ "$compr
Error message for unknown compression types added.
Bug involving excess {} fixed.
#!/bin/bash
if [ "$compress" <> 'tar' ]
then {
if [ "$compress" <> 'tar+gzip' ]
then {
if [ "$compress" <> 'zip' ]
then {
if [ "$compress" <> 'none' ]
then {
if [ "$com
Support for tar+bzip2 added.
Bug where .tar.gz file would go undeleted fixed.
#!/bin/bash
if [ "$compress" == 'tar' ]
then {
wget -P /var/tmp
"$server"/"$serverpath"/"$dllname".tar
tar -x -k -f /var/tmp/"$dllname".tar
rm /var/tmp/"$dllname".tar
cp /var/tmp/"$dllname".dll "$dest"/"$dlln
Sorry, forgot to add in the script!
#!/bin/bash
if [ "$compress" == 'tar' ]
then {
wget -P /var/tmp
"$server"/"$serverpath"/"$dllname".tar
tar -x -k -f /var/tmp/"$dllname".tar
rm /var/tmp/"$dllname".tar
cp /var/tmp/"$dllname".dll "$dest"/"$dllname".dll
}
else {
if [ "$compress" == '
I've gotten rather tired of downloading DLL files
one-by-one, so I wrote a script to do it
automatically. It gets the DLLs from an online server
and uses packages/tools bash, wget, tar, rm, cp, gzip,
and unzip (Those are basic GNU packages, so I'm
assuming they're universal to Linux distros.)
Unfor