Skip to content
Snippets Groups Projects
Unverified Commit 7a6954eb authored by jmthibault79's avatar jmthibault79 Committed by GitHub
Browse files

Add log suffix argument (#28)

parent ba5ea736
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
ACTION=$1
LOG_SUFFIX=$2
if [[ "$ACTION" != "list" && "$ACTION" != "delete" ]]
then
......@@ -31,7 +32,7 @@ fi
CLUSTER_REGION='us-central1'
TODAY=$(date +"%Y-%m-%d")
LOG_FILE="deletions-$TODAY.csv"
LOG_FILE="deletions-$TODAY-$LOG_SUFFIX.csv"
for proj in `gcloud projects list --format='table(NAME)[no-heading]'`
do
......@@ -66,4 +67,4 @@ for proj in `gcloud projects list --format='table(NAME)[no-heading]'`
fi
done
fi
done
\ No newline at end of file
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment