Skip to content

Commit

Permalink
bash file: fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Oct 5, 2017
1 parent 65406b8 commit 491b611
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions codegen/runner/pre-steps.sh
Expand Up @@ -69,24 +69,24 @@ for config_file in ${config_files}; do
if [[ $config_file == "./vendor"* ]]; then
continue
fi
module_type=$(jq -r .type ${config_file})
[[ ${module_type} != "http" ]] && continue
dir=$(dirname ${config_file})
json_files=$(find ${dir} -name "*.json")
for json_file in ${json_files}; do
thrift_file=$(jq -r '.. | .thriftFile? | select(type != "null")' ${json_file})
[[ -z ${thrift_file} ]] && continue
[[ ${found_thrifts} == *${thrift_file}* ]] && continue
found_thrifts+=" $thrift_file"
module_type=$(jq -r .type ${config_file})
[[ ${module_type} != "http" ]] && continue
dir=$(dirname ${config_file})
json_files=$(find ${dir} -name "*.json")
for json_file in ${json_files}; do
thrift_file=$(jq -r '.. | .thriftFile? | select(type != "null")' ${json_file})
[[ -z ${thrift_file} ]] && continue
[[ ${found_thrifts} == *${thrift_file}* ]] && continue
found_thrifts+=" $thrift_file"

thrift_file="$CONFIG_DIR/idl/$thrift_file"
gen_code_dir=$(
"$RESOLVE_THRIFT_BINARY" $thrift_file | \
sed "s|.*idl\/\(.*\)\/.*.thrift|$BUILD_DIR/gen-code/\1|" | \
sort | uniq | xargs
)
target_dirs+=" $gen_code_dir"
done
thrift_file="$CONFIG_DIR/idl/$thrift_file"
gen_code_dir=$(
"$RESOLVE_THRIFT_BINARY" $thrift_file | \
sed "s|.*idl\/\(.*\)\/.*.thrift|$BUILD_DIR/gen-code/\1|" | \
sort | uniq | xargs
)
target_dirs+=" $gen_code_dir"
done
done
target_dirs=$(echo ${target_dirs} | tr ' ' '\n' | sort | uniq)

Expand Down

0 comments on commit 491b611

Please sign in to comment.