diff mbox series

[v2,2/3] scripts,ipkg-build: use realpath for pkg_dir

Message ID 20210204235923.768198-2-mail@aparcar.org
State Accepted
Delegated to: Paul Spooren
Headers show
Series [v2,1/3] scripts,ipkg-build: apply shellcheck | expand

Commit Message

Paul Spooren Feb. 4, 2021, 11:59 p.m. UTC
This allows manual execution of the ipkg-build script even with
releative path.

Signed-off-by: Paul Spooren <mail@aparcar.org>
---
 scripts/ipkg-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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