summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-11 13:34:45 +0100
committerdavidovski <david@davidovski.xyz>2022-04-11 13:34:45 +0100
commit62e5165d2607576d3bc4973da62ad7fbd2baf52d (patch)
tree8dc18d87179e0599cbb4f615104293f3524c4260 /src
parent5bad037fa71bcd7684ae1ffc7549b7b45fa08af5 (diff)
creating parent dir for logfilev1.1.8
Diffstat (limited to 'src')
-rwxr-xr-xsrc/profile.sh1
1 files changed, 1 insertions, 0 deletions
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}