diff options
| author | Mike Vink <> | 2023-04-14 14:19:49 +0200 |
|---|---|---|
| committer | Mike Vink <> | 2023-04-14 14:19:58 +0200 |
| commit | cfc2f854285fad581c6d4a45e59ce7582a94af6b (patch) | |
| tree | 7b665ac9611dcc77a83aa0bf8f5952aafa2de926 /shell-scripts | |
| parent | a7584adf4aa036fdb02092b74dc4a74eee3260f6 (diff) | |
fixup
Diffstat (limited to 'shell-scripts')
| -rw-r--r-- | shell-scripts/azdo-switch-project | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/shell-scripts/azdo-switch-project b/shell-scripts/azdo-switch-project index 0dd23f2..50b97d6 100644 --- a/shell-scripts/azdo-switch-project +++ b/shell-scripts/azdo-switch-project @@ -10,20 +10,6 @@ if [ ! -d $GIT_DIR ]; then fi MAX_REPOS=20 -COUNT=$(find "$GIT_DIR" -mindepth 1 -maxdepth 1 -type d | wc -l) -if [ "$COUNT" -gt "$MAX_REPOS" ] -then - STALE=$(( COUNT - MAX_REPOS )) - OLDEST=$(find "$GIT_DIR" -mindepth 1 -maxdepth 1 -type d -printf '%T@ %p\n' 2>/dev/null \ - | sort -n | head -n$STALE | cut -d' ' -f2) - - for dir in $OLDEST - do - rm -i -r $dir - done -fi - - echo "curl -s -H \"$AUTH_HEADER\" $WORK_AZDO_GIT_ORG_URL$LIST_PROJECTS" PROJECT=$(curl -s -H "$AUTH_HEADER" $WORK_AZDO_GIT_ORG_URL$LIST_PROJECTS \ | jq ' |
