i3: Create logdir if it does not exist

This commit is contained in:
2020-12-09 22:29:49 +01:00
parent 49f40bbace
commit e1ab60d15a

View File

@@ -2,6 +2,8 @@
export LOGFILE="$LOGDIR/xinitrc.log"
mkdir -p "${LOGDIR}/i3"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
}