Remove log directory checks in scripts, are now handled by setup script.

This commit is contained in:
2014-04-26 16:49:53 +02:00
parent 279e1ae399
commit 9edf0df781
2 changed files with 0 additions and 4 deletions

View File

@@ -11,8 +11,6 @@ DEFAULT_CONF="$CONF_DIR/default"
LOGFILE="$LOGDIR/i3/genconfig.log"
mkdir -p "$(dirname $LOGFILE)"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
}

View File

@@ -7,9 +7,7 @@ LOGFILE_MAXSIZE=100000
FALLBACK_COLOR=000000
mkdir -p "$(dirname $LOGFILE)"
touch "$LOGFILE"
[[ $(stat -c%s "$LOGFILE") -gt $LOGFILE_MAXSIZE ]] && >$LOGFILE
log()