1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
path=$(realpath "${args[path]}") check-realpath "$path" case "${args[visibility]}" in public) mode="rX" ;; private) mode="" ;; esac chmod g="$mode" --recursive "$path" args[--tree]=1 args[path]="$path" repo_show_command