Change entry
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Clone repo als die nog niet bestaat
|
||||
# Als repo nog niet bestaat, clone
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "Cloning repo..."
|
||||
git clone -b ${GIT_BRANCH:-main} ${GIT_REPO_URL} .
|
||||
else
|
||||
echo "Pulling latest changes..."
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
git pull origin ${GIT_BRANCH:-main}
|
||||
|
||||
Reference in New Issue
Block a user