aboutsummarylogtreecommitdiffstats
path: root/hook
blob: 2ae023927d614f88c3a4a2528f0d1db2b3078ed1 (plain)
1
2
3
4
5
6
7
8
9
run_hook() {
    dir_pre_mount_handler="${mount_handler:-default_mount_handler}"
    mount_handler=dir_mount_handler
}

dir_mount_handler() {
    $dir_pre_mount_handler "$1"
    mount --bind -- "$1/$dir" "$1"
}