From 9769066148c6829f38e1fa7e73b2eddd71de38d9 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 13 Jul 2020 05:01:28 +0000 Subject: [PATCH] Restyled by shfmt --- codegen.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/codegen.sh b/codegen.sh index 782d8c9..dc95820 100755 --- a/codegen.sh +++ b/codegen.sh @@ -15,26 +15,26 @@ OS="$(uname)" case "$OS" in - 'Linux') - OS='linux' - SED_IFLAG=(-i'') - ;; - 'Darwin') - OS='macos' - SED_IFLAG=(-i '') - ;; - *) - echo "Operating system '$OS' not supported." - exit 1 - ;; + 'Linux') + OS='linux' + SED_IFLAG=(-i'') + ;; + 'Darwin') + OS='macos' + SED_IFLAG=(-i '') + ;; + *) + echo "Operating system '$OS' not supported." + exit 1 + ;; esac OUTPUT_FILE=api.json # Bundle yaml -swagger-cli bundle api.yaml -o "$OUTPUT_FILE"; +swagger-cli bundle api.yaml -o "$OUTPUT_FILE" # Remove newlines from descriptions -sed "${SED_IFLAG[@]}" 's/\\n\\n/\\n/g' "$OUTPUT_FILE"; -sed "${SED_IFLAG[@]}" 's/\\n/ /g' "$OUTPUT_FILE"; -sed "${SED_IFLAG[@]}" 's/ "/"/g' "$OUTPUT_FILE"; +sed "${SED_IFLAG[@]}" 's/\\n\\n/\\n/g' "$OUTPUT_FILE" +sed "${SED_IFLAG[@]}" 's/\\n/ /g' "$OUTPUT_FILE" +sed "${SED_IFLAG[@]}" 's/ "/"/g' "$OUTPUT_FILE"