added bin folder, which was being gitignored

This commit is contained in:
Micah Lee 2014-05-24 22:57:25 -04:00
parent 77a52cf2c5
commit df0d0be84c
2 changed files with 22 additions and 0 deletions

10
bin/onionshare Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
import sys, os
try:
import onionshare
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/..'))
import onionshare
onionshare.main()

12
bin/tails-onionshare Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You need to run this as root" 1>&2
exit 1
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export ONIONSHARE_PLATFORM=Tails
$DIR/onionshare $@