From 9edf0df7814a62284fe20fa792abab9ad8f411a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 26 Apr 2014 16:49:53 +0200 Subject: [PATCH] Remove log directory checks in scripts, are now handled by setup script. --- i3/i3/scripts/genconfig.bash | 2 -- i3/i3/scripts/i3exit.bash | 2 -- 2 files changed, 4 deletions(-) diff --git a/i3/i3/scripts/genconfig.bash b/i3/i3/scripts/genconfig.bash index 8823247..211b511 100644 --- a/i3/i3/scripts/genconfig.bash +++ b/i3/i3/scripts/genconfig.bash @@ -11,8 +11,6 @@ DEFAULT_CONF="$CONF_DIR/default" LOGFILE="$LOGDIR/i3/genconfig.log" -mkdir -p "$(dirname $LOGFILE)" - log() { echo "[$(date +%FT%T)] $*" >> "$LOGFILE" } diff --git a/i3/i3/scripts/i3exit.bash b/i3/i3/scripts/i3exit.bash index 6fa69e5..ca677e1 100755 --- a/i3/i3/scripts/i3exit.bash +++ b/i3/i3/scripts/i3exit.bash @@ -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()