From 62e5165d2607576d3bc4973da62ad7fbd2baf52d Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 11 Apr 2022 13:34:45 +0100 Subject: creating parent dir for logfile --- src/profile.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/profile.sh b/src/profile.sh index b0fa785..1fa6ecd 100755 --- a/src/profile.sh +++ b/src/profile.sh @@ -23,3 +23,4 @@ export PACKAGE_CACHE="${CACHE_DIR}/packages" export SYNC_CACHE="${CACHE_DIR}/sync" export LOG_FILE="/var/log/xipkg.log" +[ ! -f ${LOG_FILE} ] && mkdir -p /var/log && touch ${LOG_FILE} -- cgit v1.2.1