diff options
Diffstat (limited to 'tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh')
-rwxr-xr-x | tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh b/tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh index 7146213b33..2ce0fb394f 100755 --- a/tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh +++ b/tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh @@ -71,7 +71,7 @@ rm -rf ${LOG_FILE} || \ # Invoke main Python file python "${GCS_SMOKE_PY}" --gcs_bucket_url="${GCS_BUCKET_URL}" \ - > "${LOG_FILE}" 2>&1 + 2>&1 > "${LOG_FILE}" if [[ $? != "0" ]]; then cat ${LOG_FILE} @@ -92,9 +92,6 @@ NEW_TFREC_URL=$(grep "Using input path" "${LOG_FILE}" | \ if [[ -z ${NEW_TFREC_URL} ]]; then die "FAIL: Unable to determine the URL to the new tfrecord file in GCS" fi -if "${GSUTIL_BIN}" rm "${NEW_TFREC_URL}" -then - echo "Cleaned up new tfrecord file in GCS: ${NEW_TFREC_URL}" -else - die "FAIL: Unable to clean up new tfrecord file in GCS: ${NEW_TFREC_URL}" -fi +"${GSUTIL_BIN}" rm "${NEW_TFREC_URL}" && \ + echo "Cleaned up new tfrecord file in GCS: ${NEW_TFREC_URL}" || \ + die "FAIL: Unable to clean up new tfrecord file in GCS: ${NEW_TFREC_URL}" |