diff options
Diffstat (limited to 'get-update.sh')
-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" |