From 2511703e8406eea1d0345f0db0681776727f5b05 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 17 Oct 2023 14:07:41 +0300 Subject: [csg] Added some quotes around substitutions where needed --- csg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csg b/csg index f8d7fbb..4363b9f 100755 --- a/csg +++ b/csg @@ -116,11 +116,11 @@ then do dates=($(git log --follow --pretty=format:%ad --date="format:%d %B %Y" -- "$file")) line="$OUTPUT${file:1:-2}html\t${dates[@]: -3:3}\t${dates[@]:0:3}" - echo -e $line >> "$CSG_TIMESTAMP_FILE" + echo -e "$line" >> "$CSG_TIMESTAMP_FILE" done } - headc=$(git rev-parse HEAD) + headc="$(git rev-parse HEAD)" if [ ! -f "$CSG_TIMESTAMP_FILE" ] || [ "$headc" != "$(head -1 "$CSG_TIMESTAMP_FILE")" ] then startTimer "[Stage 0] Creating timestamps file" @@ -149,7 +149,7 @@ scr_path=() scr_recip=() while read -r reg; read -r scripts do - cat $scripts > $CSG_TMP_DIR/csg-${#scr_path[@]}.awk + cat $scripts > "$CSG_TMP_DIR/csg-${#scr_path[@]}.awk" scr_path+=("$CSG_TMP_DIR/csg-${#scr_path[@]}.awk") scr_recip+=("$(find $OUTPUT -type f -regex "$reg")") done < <($CSG_AWK ' @@ -245,7 +245,7 @@ transform-file() { mv "$file" "$outf" } -echo '$0 != 0 {print}' > $CSG_TMP_DIR/csg-print.awk +echo '$0 != 0 {print}' > "$CSG_TMP_DIR/csg-print.awk" while read -r file do -- cgit v1.3.1-26-gb76a