Avoid the use of the -E command line option for sed.
It isn't known in all versions.
Signed-off-by: Bob Glossman <bob.glossman@intel.com>
Change-Id: I66f58aa04ecc751f4b3d61475cafe0c478ce6206
Reviewed-on: http://review.whamcloud.com/19714
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
do
local path=${!i}
if [ -d "$path" ]; then
- eval export $i=$(echo $path | sed -E 's/\/+$//g')
+ eval export $i=$(echo $path | sed -r 's/\/+$//g')
fi
done
}