mirror of
https://github.com/m8tin/cis.git
synced 2026-04-02 19:01:30 +02:00
Improvement if there are running multiple instances
This commit is contained in:
@@ -85,6 +85,7 @@ function ensureRepositoryIsAvailableAndWritable() {
|
||||
|
||||
[ -d "${_REPOSITORY_FOLDER}.git" ] \
|
||||
&& echo \
|
||||
&& git -C "${_REPOSITORY_FOLDER}" reset --hard origin/main &> /dev/null \
|
||||
&& git -C "${_REPOSITORY_FOLDER}" pull &> /dev/null \
|
||||
&& git -C "${_REPOSITORY_FOLDER}" push --dry-run &> /dev/null \
|
||||
&& echo "Writable repository found in folder '${_REPOSITORY_FOLDER}'." \
|
||||
|
||||
Reference in New Issue
Block a user