./fetch.sh: line 4: cd: data: No such file or directory
The relevant part of the script is
DIR=${2:-'data'}
cd $DIR
echo "Working directory set to ${PWD}"
There's a couple problems here. The first is that it tries to go to data with no indication in the docs that the directory needs to exist, and it doesn't try to create it.
The second is that if the cd command fails for some reason (permissions, directory does not exist, etc), the script blindly continues on.
./fetch.sh: line 4: cd: data: No such file or directory
The relevant part of the script is
There's a couple problems here. The first is that it tries to go to
data
with no indication in the docs that the directory needs to exist, and it doesn't try to create it.The second is that if the cd command fails for some reason (permissions, directory does not exist, etc), the script blindly continues on.