Skip to content

Instantly share code, notes, and snippets.

@ulayera
Last active October 25, 2022 20:20
Show Gist options
  • Save ulayera/01384ff6cff4ce8b7d4b0697e5aedd75 to your computer and use it in GitHub Desktop.
Save ulayera/01384ff6cff4ce8b7d4b0697e5aedd75 to your computer and use it in GitHub Desktop.
Macos fix archive bit
#!/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