Skip to content

Commit

Permalink
fix(shellcheck): sc2155 error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkarry committed Aug 11, 2024
1 parent c8ec860 commit 8ba8b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xseed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ ENV_PATH="$SCRIPT_DIR/.env"
log_message() {
local log_type="$1"
local message="$2"
local log_line="$(date '+%Y-%m-%d %H:%M:%S') [$log_type] $message"
local log_line
log_line="$(date '+%Y-%m-%d %H:%M:%S') [$log_type] $message"
if [ -f "$LOG_FILE" ]; then
echo "$log_line" | tee -a "$LOG_FILE"
else
Expand Down

0 comments on commit 8ba8b82

Please sign in to comment.