Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 20 lines (17 sloc) 0.566 kb
#!/usr/bin/env sh
exit_cleanly () {
trap '' TERM #unregister SIGTERM trap
kill -- -$$
exit
}
trap exit_cleanly INT TERM
USER_DATA_DIR="$(cat config.js | grep storage_dir | awk -F[\'\"] '{print $4}')"/user_data
if [ ! -d "$USER_DATA_DIR" ]; then
git init "$USER_DATA_DIR" > /dev/null
touch "$USER_DATA_DIR"/.gitignore
git --git-dir "$USER_DATA_DIR"/.git add .gitignore > /dev/null
git --git-dir "$USER_DATA_DIR"/.git commit -m "Socratic User Data Repository Initialized" > /dev/null
fi
gollum "$USER_DATA_DIR" &
./socratic
exit_cleanly
Jump to Line
Something went wrong with that request. Please try again.