#!/bin/bash # # Set up path in Speed Dreams mod tools startup scripts. shopt -s extglob function updatepath () { fn=${SETUP_INSTALLPATH}/$1 # rip off last "/" ip=${SETUP_INSTALLPATH/%\//} # replace all "/" with "\/" to use with regexp. fn2=${ip//\//\\\/} ed -s $fn <