[Misc] fast fail for exiting if tools/install_flash_infer_attention_score_ops_a2.sh (#5422)
### What this PR does / why we need it?
Use `set -euo pipefail` to exit if
tools/install_flash_infer_attention_score_ops_a2.sh failed in any line
- vLLM version: release/v0.13.0
- vLLM main:
81786c8774
---------
Signed-off-by: MengqingCao <cmq0113@163.com>
Signed-off-by: Mengqing Cao <cmq0113@163.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
# This file is a part of the vllm-ascend project.
|
||||
#
|
||||
|
||||
set -euo pipefail
|
||||
trap 'echo "Error on line $LINENO: command \`$BASH_COMMAND\` failed with exit code $?" >&2' ERR
|
||||
|
||||
cd /vllm-workspace
|
||||
# download fused_infer_attention_score related source files
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
# limitations under the License.
|
||||
# This file is a part of the vllm-ascend project.
|
||||
#
|
||||
set -euo pipefail
|
||||
trap 'echo "Error on line $LINENO: command \`$BASH_COMMAND\` failed with exit code $?" >&2' ERR
|
||||
|
||||
cd /vllm-workspace
|
||||
# download fused_infer_attention_score related source files
|
||||
|
||||
Reference in New Issue
Block a user