Fix git pull repo folder check

This commit is contained in:
2025-07-04 14:41:46 +09:00
parent 0136001997
commit c04f1462d9

View File

@@ -16,7 +16,7 @@ BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
# check that repository path exists
GIT_REPOSITORY_FOLDER="${GIT_WEBHOOK_BASE_FOLDER}${CLONE_BASE}${REPOSITORY}";
if [ ! -d "${GIT_REPOSITORY_FOLDER}$" ]; then
if [ ! -d "${GIT_REPOSITORY_FOLDER}" ]; then
echo "[!] ${REPOSITORY} not found in clone folder";
echo "[!] Full path: ${GIT_REPOSITORY_FOLDER}";
exit;