mirror of
https://github.com/m8tin/cis.git
synced 2026-06-02 22:57:20 +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