[openwrt/openwrt] scripts,ipkg-build: use realpath for pkg_dir

LEDE Commits lede-commits at lists.infradead.org
Mon Mar 15 05:36:08 GMT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/bb95be9265a9e3eb71c4f50b5f289a75683405d4

commit bb95be9265a9e3eb71c4f50b5f289a75683405d4
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Thu Feb 4 13:49:02 2021 -1000

    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 at aparcar.org>
---
 scripts/ipkg-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the lede-commits mailing list