From 7d1faa94ee87ef5dc3758cdea0d5f6f0bac5b5ee Mon Sep 17 00:00:00 2001 From: terepan Date: Sun, 4 Feb 2024 06:38:50 +0000 Subject: [PATCH] fix: lint --- build_util/create_venv_and_generate_licenses.bash | 2 +- build_util/process_voicevox_resource.bash | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build_util/create_venv_and_generate_licenses.bash b/build_util/create_venv_and_generate_licenses.bash index 71a5f61c9..fc9dd0dc5 100644 --- a/build_util/create_venv_and_generate_licenses.bash +++ b/build_util/create_venv_and_generate_licenses.bash @@ -17,7 +17,7 @@ else fi pip install -r requirements-license.txt -python build_util/generate_licenses.py >$OUTPUT_LICENSE_JSON_PATH +python build_util/generate_licenses.py > "${OUTPUT_LICENSE_JSON_PATH}" deactivate diff --git a/build_util/process_voicevox_resource.bash b/build_util/process_voicevox_resource.bash index 7bd1d31f9..c085dfeee 100644 --- a/build_util/process_voicevox_resource.bash +++ b/build_util/process_voicevox_resource.bash @@ -6,22 +6,22 @@ if [ ! -v DOWNLOAD_RESOURCE_PATH ]; then fi rm -r speaker_info -cp -r $DOWNLOAD_RESOURCE_PATH/character_info speaker_info +cp -r "${DOWNLOAD_RESOURCE_PATH}/character_info" speaker_info # キャラクター情報の前処理をする -python $DOWNLOAD_RESOURCE_PATH/scripts/clean_character_info.py \ +python "${DOWNLOAD_RESOURCE_PATH}/scripts/clean_character_info.py" \ --character_info_dir speaker_info/ # マニフェスト -jq -s '.[0] * .[1]' engine_manifest.json $DOWNLOAD_RESOURCE_PATH/engine/engine_manifest.json \ +jq -s '.[0] * .[1]' engine_manifest.json "${DOWNLOAD_RESOURCE_PATH}/engine/engine_manifest.json" \ > engine_manifest.json.tmp mv engine_manifest.json.tmp engine_manifest.json python build_util/merge_update_infos.py \ engine_manifest_assets/update_infos.json \ - $DOWNLOAD_RESOURCE_PATH/engine/engine_manifest_assets/update_infos.json \ + "${DOWNLOAD_RESOURCE_PATH}/engine/engine_manifest_assets/update_infos.json" \ engine_manifest_assets/update_infos.json for f in $(ls $DOWNLOAD_RESOURCE_PATH/engine/engine_manifest_assets/* | grep -v update_infos.json); do - cp $f ./engine_manifest_assets/ + cp "${f}" ./engine_manifest_assets/ done