Skip to content

Commit

Permalink
Update exec
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivateLocker committed Nov 16, 2019
1 parent 63d4cba commit 91328dd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/exec
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,18 @@ do_console() {

do_usage() {
if [ "${@: -1}" == "-v" ] || [ "${@: -1}" == "--verbose" ];then
LOGVERBOSE=YES
LOGVERBOSE="1"
if [[ "$LOGVERBOSE" == "1" ]]; then
if [[ ! -d "$DIR/logs" ]]; then
mkdir -p "$DIR/logs";
fi
if [[ ! -f "$NETUPLOGFILE" ]]; then
touch "$NETUPLOGFILE";
fi
if [[ ! -f "$MODULELOGFILE" ]]; then
touch "$MODULELOGFILE";
fi
fi
fi
case "$1" in
update)
Expand Down

0 comments on commit 91328dd

Please sign in to comment.