- from=$1
- to=$2
- # rawfile=$3
- sed -i "s,\\<${from#textures/}\\>,\\<${to#textures/}\\>,g" "$f"
+ rawfile=$1
+ from=$2
+ to=$3
+ sed="$sed""s,\<${from#textures/}\>,${to#textures/},;"
+ sed="$sed""s,\<${rawfile#textures/}\>,${to#textures/},;" # fix messup