Skip to content

The Unified and Autonomous Development Platform

Change to use bash instead of sh.

robin shine4e732f87814d
diff --git a/gitplex.core/src/main/resources/git-postreceive-hook b/gitplex.core/src/main/resources/git-postreceive-hook
index 942ff54983..72a7c0db83 100644
--- a/gitplex.core/src/main/resources/git-postreceive-hook
+++ b/gitplex.core/src/main/resources/git-postreceive-hook
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
IFS=$'\r\n';
lines=($(curl -k -s -S -f -X POST -d @- ${GITOP_URL}/git-postreceive-callback/${GITOP_REPOSITORY_ID}/${GITOP_USER_ID} 2>&1))
diff --git a/gitplex.core/src/main/resources/git-update-hook b/gitplex.core/src/main/resources/git-update-hook
index f367dfeaab..3cdd9342a3 100644
--- a/gitplex.core/src/main/resources/git-update-hook
+++ b/gitplex.core/src/main/resources/git-update-hook
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
IFS=$'\r\n';
lines=($(
curl -k -s -S -f -X POST -d @- ${GITOP_URL}/git-update-callback/${GITOP_REPOSITORY_ID}/${GITOP_USER_ID} 2>&1 <<EOF