mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
Merge pull request #789 from reyemxela/compression_fixes
Fix validate_for_chd and unquoted log line
This commit is contained in:
commit
bbe3b01f39
|
@ -66,7 +66,7 @@ validate_for_chd() {
|
|||
log i "Validating .cue associated .bin files"
|
||||
local cue_bin_files=$(grep -o -P "(?<=FILE \").*(?=\".*$)" "$file")
|
||||
log i "Associated bin files read:"
|
||||
log i $(printf '%s\n' "$cue_bin_files")
|
||||
log i "$(printf '%s\n' "$cue_bin_files")"
|
||||
if [[ ! -z "$cue_bin_files" ]]; then
|
||||
while IFS= read -r line
|
||||
do
|
||||
|
|
|
@ -86,11 +86,11 @@ log() {
|
|||
esac
|
||||
|
||||
# Display the message in the terminal
|
||||
echo -e "$colored_message"
|
||||
echo -e "$colored_message" >&2
|
||||
|
||||
# Write the log message to the log file
|
||||
if [ ! -f "$logfile" ]; then
|
||||
echo "$timestamp [WARN] Log file not found in \"$logfile\", creating it"
|
||||
echo "$timestamp [WARN] Log file not found in \"$logfile\", creating it" >&2
|
||||
touch "$logfile"
|
||||
fi
|
||||
echo "$log_message" >> "$logfile"
|
||||
|
|
Loading…
Reference in a new issue