diff options
author | SeongJae Park <sj@kernel.org> | 2024-04-21 10:40:27 -0700 |
---|---|---|
committer | SeongJae Park <sj@kernel.org> | 2024-04-21 10:40:39 -0700 |
commit | bd78f5ff95b7e4220678fe9669f98eef4553e45a (patch) | |
tree | 7f34dc2f9db4ec18336f2c34a803326797592eaf | |
parent | 0fd52fa1d0073e0f9ead491957fb395b2fb96acf (diff) | |
download | damon-hack-bd78f5ff95b7e4220678fe9669f98eef4553e45a.tar.gz |
stable_commits: Check existence of the script
The local lazybox repo might be old snapshot that not having the stable
commits checker script. Check existence of the script.
Signed-off-by: SeongJae Park <sj@kernel.org>
-rwxr-xr-x | stable_commits.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stable_commits.sh b/stable_commits.sh index 56d55bf..9d7b886 100755 --- a/stable_commits.sh +++ b/stable_commits.sh @@ -5,10 +5,11 @@ bindir=$(dirname "$0") lbx_path=$(realpath "$bindir/../lazybox") +stable_commits_check="$lbx_path/linux_hack/stable_commits_check.py" -if [ ! -d "$lbx_path" ] +if [ ! -x "$stable_commits_check" ] then - echo "lazybox not found at $lbx_path" + echo "$stable_commits_check not found" exit 1 fi @@ -18,7 +19,6 @@ do dst="v$tree..stable/linux-$tree.y" echo "src: $src, dst: $dst" echo - "$lbx_path/linux_hack/stable_commits_check.py" \ - --src "$src" --dest "$dst" \ - --file mm/damon include/linux/damon.h --need_merge + "$stable_commits_check" --src "$src" --dest "$dst" --need_merge \ + --file mm/damon include/linux/damon.h done |