1
0

start.sh 291 B

123456789101112131415
  1. #! /bin/sh
  2. # get current state of cwd
  3. files=$(ls)
  4. # run writefreely init commands
  5. ./writefreely config start || exit 1
  6. # copy any resulting files to the data directory
  7. for file in $(ls); do
  8. if ! echo $files | grep -q $file; then
  9. cp $file /data/
  10. echo "Copied $file to /data"
  11. fi
  12. done