Skip to content

Instantly share code, notes, and snippets.

@Profpatsch
Created February 13, 2013 16:41
Show Gist options
  • Save Profpatsch/4945937 to your computer and use it in GitHub Desktop.
Save Profpatsch/4945937 to your computer and use it in GitHub Desktop.
--- playdarctl 2013-02-13 17:06:05.958736728 +0100
+++ playdarctl 2013-02-13 17:09:07.982824648 +0100
@@ -35,7 +35,12 @@
ERL_OPTS="+K true +P 1000000"
EBIN_DIR="ebin"
PLAYDAR_OPTS="-s playdar -sname ${ENAME}@localhost -pa ${EBIN_DIR} -boot start_sasl"
-PLAYDAR_LOG_DIR=.
+if [[ -d ~/.playdar/ ]]; then
+ PLAYDAR_LOG_DIR=~/.playdar/
+else
+ mkdir ~/.playdar/
+ PLAYDAR_LOG_DIR=~/.playdar/
+fi
ctl ()
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment