Merge pull request #1 from benjja/benjja-log-file-creation

Add missing slash
This commit is contained in:
Benjamin Richter 2024-02-05 00:10:13 +01:00 committed by GitHub
commit caa9623d0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1817,7 +1817,7 @@ run() # Initials - r
echo $var_policy_file
elif [ "-vl" = "$1" ] || [ "--view-logs" = "$1" ]; then
record_command $@
if ls /var/log/nano_agent/cp-nano-http-transaction-handler.log? 1>dev/null 2>&1; then
if ls /var/log/nano_agent/cp-nano-http-transaction-handler.log? 1>/dev/null 2>&1; then
less $LOG_FILE_PATH/nano_agent/cp-nano-http-transaction-handler.log?
else
echo "No logs found"