scripts,ipkg-build: use realpath for pkg_dir
authorPaul Spooren <mail@aparcar.org>
Thu, 4 Feb 2021 23:49:02 +0000 (13:49 -1000)
committerPaul Spooren <mail@aparcar.org>
Mon, 15 Mar 2021 05:32:30 +0000 (19:32 -1000)
This allows manual execution of the ipkg-build script even with
releative path.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/ipkg-build

index 8533c97fccb3229a0bf651ee4e964cea1760718c..c112270a2bc6b2b18eeca9f7659db7b218a2b946 100755 (executable)
@@ -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