#!/usr/bin/env bash
function downloadIfMissing {
if [ -f $1 ]; then
echo "File $1 exists."
else
wget $2
fi
}
from Martin Callesen
#!/usr/bin/env bash
function downloadIfMissing {
if [ -f $1 ]; then
echo "File $1 exists."
else
wget $2
fi
}