diff options
author | davidovski <david@davidovski.xyz> | 2022-04-11 13:34:45 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-04-11 13:34:45 +0100 |
commit | 62e5165d2607576d3bc4973da62ad7fbd2baf52d (patch) | |
tree | 8dc18d87179e0599cbb4f615104293f3524c4260 | |
parent | 5bad037fa71bcd7684ae1ffc7549b7b45fa08af5 (diff) |
creating parent dir for logfilev1.1.8
-rwxr-xr-x | src/profile.sh | 1 |
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} |