Skip to content

Instantly share code, notes, and snippets.

@hadifarnoud
Created December 22, 2014 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadifarnoud/91ad64f0f3ffc6b6e9d1 to your computer and use it in GitHub Desktop.
Save hadifarnoud/91ad64f0f3ffc6b6e9d1 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in /var/www/camva/public/upload/user/*/editor/
do
echo "emptying editor folder first... " + $i
rm -rf $i
cp -r /var/www/camva/public/builder/* $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment