Skip to content

Commit b21e55d

Browse files
committed
Fix a messed up assignment of _logFile if it has no slashes.
1 parent 6e4f13c commit b21e55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bashlib/bashlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ log() {
710710

711711
# Create the log file.
712712
if [[ $_logFile && ! -e $_logFile ]]; then
713-
[[ $_logFile = */* ]] || $_logFile=./$logFile
713+
[[ $_logFile = */* ]] || _logFile=./$_logFile
714714
mkdir -p "${_logFile%/*}" && touch "$_logFile"
715715
fi
716716

0 commit comments

Comments
 (0)