Last active
October 25, 2022 20:20
-
-
Save ulayera/01384ff6cff4ce8b7d4b0697e5aedd75 to your computer and use it in GitHub Desktop.
Macos fix archive bit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=$1 | |
touch ${DIR}.metadata_never_index | |
find ${DIR}* -path ${DIR} -prune -o -path ${DIR}emuMMC -prune -o -path ${DIR}Emutendo -prune -o -path ${DIR}Nintendo -prune -o -depth 0 -print | xargs -I{} sudo chflags -R arch "{}" | |
rm -rf ${DIR}.metadata_never_index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment