diff options
| Commit | 2511703e8406eea1d0345f0db0681776727f5b05 (patch) | |
|---|---|---|
| Author | 2023-10-17 14:07:41 +0300 | |
| Committer | 2023-10-17 14:08:34 +0300 | |
| Files | f15de0e025f7b66204a0831d019fd73944ba7b07 | |
| csg-2511703e8406eea1d0345f0db0681776727f5b05.tar csg-2511703e8406eea1d0345f0db0681776727f5b05.tar.gz csg-2511703e8406eea1d0345f0db0681776727f5b05.zip | ||
| Parent | f95fd69a6fef43e9c0aa6b2dc4d1de46af89583d (diff) | |
[csg] Added some quotes around substitutions where needed
1 files changed, 4 insertions, 4 deletions
| -rwxr-xr-x | csg | 8 |
@@ -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 |
