scripts,ipkg-build: use realpath for pkg_dir

This allows manual execution of the ipkg-build script even with
releative path.

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren 2021-02-04 13:49:02 -10:00
parent 72f481b157
commit bb95be9265
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ case $# in
;;
esac
pkg_dir="$1"
pkg_dir="$(realpath "$1")"
if [ ! -d "$pkg_dir" ]; then
echo "*** Error: Directory $pkg_dir does not exist" >&2