scripts/pkgdep.sh: don't ignore errors
It is likely that bizarre errors occur if any of these commands fail so don't continue but just exit with an error. Change-Id: I007192f22c89f3d7f92b1f4a0cc31cb50b605dc3 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/424412 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
6637dd32be
commit
93fb58f29d
@ -1,6 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Please run this script as root.
|
# Please run this script as root.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
trap 'set +e; trap - ERR; echo "Error!"; exit 1;' ERR
|
||||||
|
|
||||||
scriptsdir=$(readlink -f $(dirname $0))
|
scriptsdir=$(readlink -f $(dirname $0))
|
||||||
rootdir=$(readlink -f $scriptsdir/..)
|
rootdir=$(readlink -f $scriptsdir/..)
|
||||||
|
Loading…
Reference in New Issue
Block a user