diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-28 09:17:22 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-02-28 09:17:31 +0100 |
commit | 1845352f7cf72096a36a7faf5410f12e775f00d6 (patch) | |
tree | 92cd81a489d28bff8114ad9e5c34a9c58f0c3874 /scripts | |
parent | 6eed83e6889c720eaa71ac9fe92e30cdb95dc90a (diff) | |
download | ptxdist-1845352f7cf72096a36a7faf5410f12e775f00d6.tar.gz ptxdist-1845352f7cf72096a36a7faf5410f12e775f00d6.tar.xz |
ptxd_make_world_extract: add sanity check
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_world_extract.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_make_world_extract.sh b/scripts/lib/ptxd_make_world_extract.sh index 0e911e731..760ddadb9 100644 --- a/scripts/lib/ptxd_make_world_extract.sh +++ b/scripts/lib/ptxd_make_world_extract.sh @@ -22,6 +22,10 @@ ptxd_make_world_extract() { pkg_extract_dir="${pkg_deprecated_extract_dir:-${pkg_extract_dir}}" + if [ "${pkg_dir%/}" = "${pkg_extract_dir}" ]; then + ptxd_bailout "<PKG>_DIR cannot be the $(ptxd_print_path ${pkg_extract_dir}). There is something wrong with the package definition." + fi + case "${pkg_url}" in lndir://*) local url="${pkg_url//lndir:\/\//}" |