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