Files
bin/test.sh
2012-12-16 18:46:30 +01:00

8 lines
239 B
Bash

echo "#!/bin/bash" > /tmp/cctest
echo "dstdir=\$(dirname \$1)" >> /tmp/cctest
echo "echo rsync -av \$1 \$bakdir/\$dstdir" >> /tmp/cctest
export bakdir=/media/hdext/git
find /home/marc/ -type d -name .git -exec bash -x /tmp/cctest {} \;