Remove log directory checks in scripts, are now handled by setup script.
This commit is contained in:
@@ -11,8 +11,6 @@ DEFAULT_CONF="$CONF_DIR/default"
|
||||
|
||||
LOGFILE="$LOGDIR/i3/genconfig.log"
|
||||
|
||||
mkdir -p "$(dirname $LOGFILE)"
|
||||
|
||||
log() {
|
||||
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user