Skip to content

Commit

Permalink
Do not tee the output
Browse files Browse the repository at this point in the history
Because of the grep script it will always be true, so just reset the
file.
  • Loading branch information
SimonRichardson committed Oct 23, 2020
1 parent 90ff78c commit 4353d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
VERSION=$(juju version | cut -d "-" -f 1,2 | xargs -I% echo "%.1")
while true; do
juju upgrade-model --agent-version="$VERSION" 2>&1 | tee -a output.log || true
juju upgrade-model --agent-version="$VERSION" 2>&1 | tee output.log || true
RES=$(cat output.log | grep "upgrade in progress" || echo "NOT-UPGRADING")
if [ "$RES" = "NOT-UPGRADING" ]; then
break
Expand Down

0 comments on commit 4353d96

Please sign in to comment.