From 6a704441851952ba7e4364d44ef73fc68407f382 Mon Sep 17 00:00:00 2001 From: ronivay Date: Sun, 31 May 2020 12:10:16 +0300 Subject: [PATCH] don't try to log when logfile doesn't exist --- xo-install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index aa33853..9d46d73 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -61,8 +61,7 @@ fi # create logpath if doesn't exist if [[ ! -d $LOGPATH ]]; then - cmdlog "mkdir -p $LOGPATH" - mkdir -p $LOGPATH >> $LOGFILE 2>&1 + mkdir -p $LOGPATH fi function CheckUser {