Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
tweirtx committed May 12, 2019
1 parent b389ee3 commit 963c6f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ pip3 install Cython --only-binary :all: # Cython takes ages to build on pi so we
pip3 install -Ur requirements.txt
echo "Would you like TimeTracker to start automatically upon boot? [y/n]"
read autoboot
if ${autoboot} == 'y'; then
echo "echo Starting TimeTracker..." >> .bashrc
echo "cd timetracker && python3 -m timetracker" >> .bashrc
if [[ ${autoboot} == 'y' ]]; then
echo "echo Starting TimeTracker..." >> ~/.bashrc
echo "cd timetracker && python3 -m timetracker" >> ~/.bashrc
echo "Autobooting"
fi

0 comments on commit 963c6f5

Please sign in to comment.