From a08af95bd496250c3b46229464b02b7a031ba455 Mon Sep 17 00:00:00 2001 From: Deepankar Chakroborty Date: Thu, 14 Mar 2024 13:37:09 -0700 Subject: [PATCH] =?UTF-8?q?yaml=20=E2=86=92=20yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convert_to_toml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert_to_toml.sh b/convert_to_toml.sh index 44dfd2b..dc9b21f 100755 --- a/convert_to_toml.sh +++ b/convert_to_toml.sh @@ -20,7 +20,7 @@ if command -v yj > /dev/null 2>&1; then # For each .yaml file in the current directory for yaml_file in *.yml; do # Use basename to get the file name without the .yaml extension - base_name=$(basename "$yaml_file" .yaml) + base_name=$(basename "$yaml_file" .yml) # Convert .yaml to .toml using yj cat "$yaml_file" | yj -yt > "${base_name}.toml"