specify clone branch to master
This commit is contained in:
+2
-2
@@ -112,7 +112,7 @@ getTheme () {
|
||||
if [ ! -d ./"${THEME_NAME}" ]
|
||||
then
|
||||
echo "clone theme with ${GITTHEMECLONEURL} ${THEME_NAME}"
|
||||
git clone "${GITTHEMECLONEURL}" "${THEME_NAME}" || errorAndExit "can't clone theme" 3
|
||||
git clone "${GITTHEMECLONEURL}" "${THEME_NAME}" master|| errorAndExit "can't clone theme" 3
|
||||
fi
|
||||
if [ -d ./"${THEME_NAME}" ]
|
||||
then
|
||||
@@ -165,7 +165,7 @@ zola --version
|
||||
echo "checking local repository directory"
|
||||
if [ ! -d "${GITPROJECTNAME}" ]; then
|
||||
echo "no local repository directory found, cloning ${GITPROJECTNAME} from ${GITCLONEURL}"
|
||||
git clone "${GITCLONEURL}" || exit 9
|
||||
git clone "${GITCLONEURL}" master || exit 9
|
||||
echo "change into project path ${GITPROJECTNAME}"
|
||||
cd "${GITPROJECTNAME}" || exit 6
|
||||
getTheme
|
||||
|
||||
Reference in New Issue
Block a user