Fix git pull repo folder check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user