a few exceptions to allow for ship listings

This commit is contained in:
James Tomasino 2018-11-26 17:07:38 -05:00
parent b5bd354818
commit 1ffcdb334d
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ trap finish EXIT
temp_roster=$(mktemp -t "$(basename "$0").roster.XXXXXXX") || exit 1
# find all ship folders
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" -type d | while read -r shipdir
find "/var/gopher/" -maxdepth 1 ! -path "/var/gopher/" ! -path "/var/gopher/ships" -type d | while read -r shipdir
do
owner=$(stat -c %U "$shipdir")
printf "%s|%s\\n" "$owner" "$(basename "$shipdir")" >> "$temp_roster"