There is also a faulty "if" statement on line 56. This is incorrect: if $(echo "${_HOOK}" | grep file:\/\/) this is correct: if (echo "${_HOOK}" | grep file:\/\/) Probably "file:\/\/" could also just be "file://". I think in the sed statement, "file\://" could just be "file://" as well. -- Scott Barker scott@mostlylinux.ca Linux Consultant http://www.mostlylinux.ca/scott