-
Notifications
You must be signed in to change notification settings - Fork 610
use a check for dir existence that doesn't set exit code 1 if the dir doesn't exist #29952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #29952 +/- ##
==========================================
+ Coverage 64.17% 65.05% +0.87%
==========================================
Files 1861 1241 -620
Lines 181886 165290 -16596
Branches 5217 0 -5217
==========================================
- Hits 116729 107522 -9207
+ Misses 55972 48612 -7360
+ Partials 9185 9156 -29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
docs/Contributing/product-groups/orchestration/understanding-host-vitals.md
Outdated
Show resolved
Hide resolved
if _, ok := s.pathsCreated[pathname]; !ok { | ||
s.Writef("mkdir -p %s", pathname) | ||
s.pathsCreated[pathname] = struct{}{} | ||
} | ||
s.Writef(`[ -d "%s" ] && /bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s.Writef(`[ -d "%s" ] && /bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target) | |
s.Writef(`/bin/ln -h -f -s -- "%s" "%s"`, pathname, source, target) |
@jahzielv now that we make the dir ahead of time, we can indeed drop this, based on looking back at the last time this was changed, in #25901.
test failures are unrelated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; thanks for bearing with the changes here.
Probably should QA this on-branch /cc @jmwatts
merging
|
Checklist for submitter
If some of the following don't apply, delete the relevant line.
changes/
,orbit/changes/
oree/fleetd-chrome/changes
.See Changes files for more information.