diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2021-03-09 16:31:18 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2021-03-09 16:31:18 +0800 |
commit | 053bb1da30b65587db4ebca0e5213cab92d50c6e (patch) | |
tree | 1cc57fd4e5b0c056769446f44f17fb153ff8c1b2 | |
parent | c3ab6a0be45e563fe92f53c6aefbe0b24fca7da0 (diff) | |
download | android-build-kernel-versions-053bb1da30b65587db4ebca0e5213cab92d50c6e.tar.gz |
get-update.sh: use absolut path for the kernel branch file
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | get-update.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/get-update.sh b/get-update.sh index 382b51c..16eaf9f 100755 --- a/get-update.sh +++ b/get-update.sh @@ -1,5 +1,7 @@ #!/bin/bash -ex +dir_parent=$(cd $(dirname $0); pwd) + kernel_branch=${1} kernel_version=${2} if [ ! -f "${kernel_branch}" ]; then @@ -8,7 +10,7 @@ if [ ! -f "${kernel_branch}" ]; then exit 0 fi -kernel_ver_old=$(cat "${kernel_branch}") +kernel_ver_old=$(cat "${dir_parent}/${kernel_branch}") if [ "X${kernel_version}X" = "X${kernel_ver_old}X" ]; then # do nothing when all the VERSION/PATCHLEVEL/SUBLEVEL are the same echo "The kernel version is the same as before" |