]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
src/script: add helper function has_build_dir
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 14 Nov 2022 15:57:25 +0000 (10:57 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 6 Feb 2025 18:54:04 +0000 (13:54 -0500)
commitb696d6b5895e12bed9526eba8d2ea31dec48291c
treef8bae9d31b7fa5093bd9595c2c899b1d5d67d1a3
parente27275281144dc1035920a279ae8bcaaf9e92c96
src/script: add helper function has_build_dir

This function returns successfully if $BUILD_DIR exists and is valid.
This is a useful building block for automation around the build and
can be used to avoid re-running commands that fail is the build dir
exists already.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 3046f78d69ea1b6937ce84e53f72934201a105db)
src/script/lib-build.sh