Forráskód Böngészése

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 <[email protected]>
Paul Spooren 4 éve
szülő
commit
bb95be9265
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      scripts/ipkg-build

+ 1 - 1
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