diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index 385aa1d..4376e87 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -64,23 +64,17 @@ jobs: json_file="frontend/public/json/${script_name}.json" - if [[ -f "$ct_file" ]]; then - - else + if [[ ! -f "$ct_file" ]]; then echo "ct file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$ct_file" >> $GITHUB_OUTPUT fi - if [[ -f "$install_file" ]]; then - - else - echo "install file not found." + if [[ ! -f "$install_file" ]]; then + echo "install file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$install_file" >> $GITHUB_OUTPUT fi - if [[ -f "$json_file" ]]; then - - else + if [[ ! -f "$json_file" ]]; then echo "json file not found." echo "files_found=false" >> $GITHUB_OUTPUT echo "missing=$json_file" >> $GITHUB_OUTPUT