… | … | ||
---|---|---|---|
92 | if (!-f "$path/regions") { | 92 | if (!-f "$path/regions") { |
93 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; | 93 | warn "'$path' does not look like a maps directory ('regions' file is missing).\n"; |
94 | exit 1 unless $FORCE; | 94 | exit 1 unless $FORCE; |
95 | } | 95 | } |
96 | 96 | ||
97 | system $RSYNC, "-av", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" | 97 | system $RSYNC, "-a", "--chmod=u=rwX,go=rX", "$path/.", "$DATADIR/maps/.", "--delete", "--exclude", "CVS", "--delete-excluded" |
98 | and die "map installation failed.\n"; | 98 | and die "map installation failed.\n"; |
99 | 99 | ||
100 | print "maps installed successfully.\n"; | 100 | print "maps installed successfully.\n"; |
101 | } | 101 | } |
102 | 102 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |