summaryrefslogtreecommitdiffstats
path: root/scripts/cllogger
blob: e13941f5c68a05a33c230c721212168d4a37d370 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# We want to log stuff on a text file when there are interesting commands or snippets on the command line

LOGFILE=/home/lemon/ownCloud/Textnotes/commandline_stuff.txt

if [ $# -ne 1 ]; then
        echo "You need to include a fucking string. Your message?"
        exit 1
fi

echo $1
echo $1 >> $LOGFILE

echo "Ok, I've written that to the end of $LOGFILE."