Fix handling of relative paths in profiler's build.sh
authorRuben Ayrapetyan <r.ayrapetyan@samsung.com>
Fri, 15 Sep 2017 19:19:36 +0000 (22:19 +0300)
committerRuben Ayrapetyan <r.ayrapetyan@samsung.com>
Fri, 15 Sep 2017 19:19:29 +0000 (22:19 +0300)
profiler/profiler/build.sh

index 96cffd7..46351ff 100755 (executable)
@@ -7,8 +7,8 @@ usage()
        echo "RootFS - (optional) path to target's rootfs directory. For native builds, leave empty"
 }
 
-coreclr_devel_rpm=$1
-rootfs=$2
+coreclr_devel_rpm=$(readlink -f $1)
+rootfs=$(readlink -f $2)
 
 if [ ! -f $coreclr_devel_rpm ]; then
        usage
@@ -58,4 +58,4 @@ else
                                -DCLR_SRC_DIR=$clr_dir/usr/share/dotnet/shared/Microsoft.NETCore.App/2.0.0/
 fi
 make
-cd ..
\ No newline at end of file
+cd ..