! /bin/bash [ -z "$1" ] && exit 1 [ ! -d "$1" ] && exit 1 mkdir -p $1/drivers/human/tracks/b-speedway 2>/dev/null if [ ! -e $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml ] || [ drivers/human/tracks/b-speedway/car-porsche-gt1.xml -nt $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml ] then if [ -e $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml ] then echo "Saving $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml to $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml.old" cp -f $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml.old fi cp -f drivers/human/tracks/b-speedway/car-porsche-gt1.xml $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml chmod 640 $1/drivers/human/tracks/b-speedway/car-porsche-gt1.xml fi mkdir -p $1/drivers/human/tracks/dirt-1 2>/dev/null