Skip to content

Conversation

@highrise511
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@jason-lachance jason-lachance left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basics look good, but I suspect you mean to append to, not overwrite, the log file.

mkdir -p logs/
destdir=logs/promotion-list
echo "Saving list of updated resource groups to logs/promotion-list"
echo "$groups" > "$destdir" No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you wanting to keep appending to logs/promotion-list or to overwrite it? You probably want >> here.

./update-group-tag-by-name.sh $name Environment=production
done
# Output production group list to file.
mkdir -p logs/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might also be helpful to write out a timestamp here so we know when this was last run. I'm thinking about the case where you run it multiple times in the same directory -- and you want the output to be appended so you don't lose the last output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants