8 lines
239 B
Bash
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 {} \;
|