diff --git a/scripts/pkgdep.sh b/scripts/pkgdep.sh index 00952b9c1e..880525d3be 100755 --- a/scripts/pkgdep.sh +++ b/scripts/pkgdep.sh @@ -1,6 +1,8 @@ #!/bin/sh # Please run this script as root. +set -e +trap 'set +e; trap - ERR; echo "Error!"; exit 1;' ERR scriptsdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $scriptsdir/..)