#!/bin/bash # Install money in /usr/bin and create an initial budget file # # Copyright (c) 2015 Daniel Vedder # Licensed under the terms of the GNU General Public License v3 echo "This script will install money on your system. It requires superuser privileges." echo "Copying money.py to /usr/bin/money" sudo cp money.py /usr/bin/money sudo chmod 755 /usr/bin/money # Only create the .money file if it doesn't exist yet if ! [ -f $HOME/.money ] then echo "Creating ~/.money" echo "Monthly budget" > $HOME/.money echo " ===============" >> $HOME/.money echo " Balance: 0" >> $HOME/.money fi echo "Done."