#! /bin/sh

#echo is safegaurd check
#find . -mindepth 1 -type d -exec echo cp index.php {} \;

#cp index into all subs
#find . -mindepth 1 -type d -exec cp index.php {} \;
#[ -f "index.php" ] && find . -mindepth 1 -type d -exec cp -p index.php {} \; && echo "Done!"

[ -f "index.php" ] && find . -mindepth 1 -type d -exec echo "Copy index.php to : {}" \; -exec cp -p index.php {} \; && echo "Done!"

#ln soft php into all subs
#find . -mindepth 1 -type d -exec ln -s index.php {} \;
