| 1 | #!/bin/sh |
| 2 | |
| 3 | for i in "$@"; do |
| 4 | if [ -d "$i" ]; then |
| 5 | # redirect stdin to workaround problem with |
| 6 | # apk add --overlay-from-stdin |
| 7 | # https://gitlab.alpinelinux.org/alpine/aports/-/issues/16692 |
| 8 | PKGSYSTEM_ENABLE_FSYNC=0 \ |
| 9 | update-mime-database "$i" < /dev/null > /dev/null 2>&1 |
| 10 | fi |
| 11 | done |