From cfc2f854285fad581c6d4a45e59ce7582a94af6b Mon Sep 17 00:00:00 2001 From: Mike Vink <> Date: Fri, 14 Apr 2023 14:19:49 +0200 Subject: fixup --- shell-scripts/azdo-switch-project | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'shell-scripts') 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 ' -- cgit v1.2.3