summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-07 10:47:08 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-07 18:27:58 +0200
commitf2b2f5c1cc0b6063df4b0ea0f3ec82a4a6ff7156 (patch)
tree1e06dee7ce90d2d2b922a1a5302fde274e8e3b57
parent3722faf34c027c1f2963e6748a046e2d9fc6a2ab (diff)
downloadptxdist-f2b2f5c1cc0b6063df4b0ea0f3ec82a4a6ff7156.tar.gz
ptxdist-f2b2f5c1cc0b6063df4b0ea0f3ec82a4a6ff7156.tar.xz
ptxd_install_setup: add the failing command to the error message
More information would be better, but that's not available here. Extract the function name of the high-level install command to provide some hint where the problem occurred. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 766d46ac3..de0db4b0e 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -99,7 +99,7 @@ ptxd_install_setup() {
case "${dst}" in
/bin/*|/sbin/*|/lib/*) dst="/usr${dst}" ;;
/*|"") ;;
- *) ptxd_bailout "'dst' must be an absolute path!" ;;
+ *) ptxd_bailout "${FUNCNAME[${#FUNCNAME[@]}-5]}: 'dst' must be an absolute path!" ;;
esac
nfsroot_dirs=("${ptx_nfsroot}" ${pkg_nfsroot_dirs})