nathanb/iws-snippets — Issue #5: install_mono-2.10.sh tar.gz bug
Author: jarshwah
Created: 2012-01-17 04:31:56+00:00
State: open

Running this script on a redhat 5 system, receive the following error:

`./install_mono-2.10.sh: line 69: cd: /path/to/iws-snippets/mono-install-scripts/fedora/build/mono-2.10.8: No such file or directory`

The problem appears to be

```
while [ "$index" -lt "$count" ]
do
#only download it if you don't already have it.
if [ ! -f "${PACKAGES[$index]}.tar" ]
then
wget "${URLS[@]:$index:1}"
fi
if [ -f "${PACKAGES[$index]}.tar.bz2" ]
then
bunzip2 -df "${PACKAGES[$index]}.tar.bz2"
fi
if [ -f "${PACKAGES[$index]}.tar" ]
then
tar -xvf "${PACKAGES[$index]}.tar"
fi

let "index = $index + 1"
done
```

There is no way of unpacking

```mono-2.10.8.tar.gz"```