Skip to content
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

[CICD-761] Generate a dynamic excludes file list for rsync #40

Closed
wants to merge 15 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[CICD-761] Create print_mount_paths util
mike-day committed Dec 14, 2024
commit 22e4b7fc37c7565138485b5c5efe0807baf05d63
9 changes: 9 additions & 0 deletions utils/print_mount_paths.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

print_mount_paths() {
local mount_path=$1
# Print the mounted source path and base mount path, listed in positions 4 and 5 of the resulting string
grep "$mount_path" /proc/self/mountinfo | awk '{print $4, $5}'
}