Wrapping the filename in quotes preserves the .yml suffix, so regex is no longer necessary
This commit is contained in:
@@ -13,6 +13,6 @@ EOF
|
|||||||
|
|
||||||
for f in assets/prometheus/rules/*.rules.y*ml
|
for f in assets/prometheus/rules/*.rules.y*ml
|
||||||
do
|
do
|
||||||
echo " $(basename $f | sed s/\.yml//): |+"
|
echo " $(basename "$f"): |+"
|
||||||
cat $f | sed "s/^/ /g"
|
cat $f | sed "s/^/ /g"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user