Skip to content

Commit

Permalink
update normalization script
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Jan 5, 2024
1 parent 47a8ffe commit f75e357
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/normalize-all-scenarios.sh

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/normalize-all-yaml.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -e

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/..

find data -type f -name '*.yaml' -print0 | xargs -0 --max-args 1 sed -i -e 's/[[:blank:]]\+$//'

find data -type f -name '*.yaml' -print0 | xargs -0 --max-args 1 yq --inplace

0 comments on commit f75e357

Please sign in to comment.