From: Paul Spooren Date: Thu, 4 Feb 2021 23:49:02 +0000 (-1000) Subject: scripts,ipkg-build: use realpath for pkg_dir X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bb95be9265a9;p=openwrt%2Fstaging%2Fnbd.git 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 --- diff --git a/scripts/ipkg-build b/scripts/ipkg-build index 8533c97fcc..c112270a2b 100755 --- a/scripts/ipkg-build +++ b/scripts/ipkg-build @@ -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