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