Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit2511703e8406eea1d0345f0db0681776727f5b05 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-17 14:07:41 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-17 14:08:34 +0300
Filesf15de0e025f7b66204a0831d019fd73944ba7b07
csg-2511703e8406eea1d0345f0db0681776727f5b05.tar
csg-2511703e8406eea1d0345f0db0681776727f5b05.tar.gz
csg-2511703e8406eea1d0345f0db0681776727f5b05.zip
Parentf95fd69a6fef43e9c0aa6b2dc4d1de46af89583d (diff)
[csg] Added some quotes around substitutions where needed
1 files changed, 4 insertions, 4 deletions
-rwxr-xr-xcsg8
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