diff --git a/install.sh b/install.sh index 86c05c766c27e2aaae7367c9cc82bf1e7ec86d83..a27e54c75514ad4dfc6bbc0243b193e8aecf7fb6 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # # Copyright (c) 2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,6 +14,7 @@ # limitations under the License. # +set -e sudo cp ohtest /usr/bin/ if cat ~/.bashrc | grep "DEVTESTDIR" > /dev/null