+ fi
+ # set the cygwin root path if we're on cygwin.
+ whichable cygpath
+ if [ $? -eq 0 ]; then
+ # found cygpath, so run it now to get the dossy path of the root ('/' folder).
+ found_root="$(cygpath -w -m /)"
+ if [ $? -ne 0 ]; then
+ echo "Failure to find virtual Unix root folder with cygpath."
+ exit 1322
+ fi
+echo "found root as '$found_root'"
+ # translate any backslashes to forward thinking slashes.
+ found_root=$(echo $found_root | tr '\\' '/')
+echo "processed root is now: '$found_root'"
+ # edit the entry in place to correct the default path.
+ sed -i -e "s%VirtualUnixRoot=.*%VirtualUnixRoot=$found_root%" "$CLAM_BINARIES/paths.ini"
+echo "paths file now has:"
+cat "$CLAM_BINARIES/paths.ini"