Created
June 14, 2018 18:43
-
-
Save gcamerli/f6898b252e67084c3b575c9150344760 to your computer and use it in GitHub Desktop.
Reset all extended attributes on the passed argument
This file contains 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/sh | |
# ./reset_attr.sh $1 | |
# Remove no-change attributes | |
chflags nouchg $1 | |
# Remove extended attributes | |
xattr -rc $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment