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"
|
LOGFILE="$LOGDIR/i3/genconfig.log"
|
||||||
|
|
||||||
mkdir -p "$(dirname $LOGFILE)"
|
|
||||||
|
|
||||||
log() {
|
log() {
|
||||||
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
|
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ LOGFILE_MAXSIZE=100000
|
|||||||
|
|
||||||
FALLBACK_COLOR=000000
|
FALLBACK_COLOR=000000
|
||||||
|
|
||||||
mkdir -p "$(dirname $LOGFILE)"
|
|
||||||
touch "$LOGFILE"
|
touch "$LOGFILE"
|
||||||
|
|
||||||
[[ $(stat -c%s "$LOGFILE") -gt $LOGFILE_MAXSIZE ]] && >$LOGFILE
|
[[ $(stat -c%s "$LOGFILE") -gt $LOGFILE_MAXSIZE ]] && >$LOGFILE
|
||||||
|
|
||||||
log()
|
log()
|
||||||
|
|||||||
Reference in New Issue
Block a user