 #!/bin/bash
 
script_path=$(dirname "$0")
echo "$script_path"

# 遍历当前文件夹下所有以.dmg为后缀的文件
for file in "$script_path"/*; do
    if [[ $file == *.app ]]; then
        xattr -cr "$file"
        echo "$file"
    fi
    
    if [[ $file == *.dmg ]]; then
        xattr -cr "$file"
        echo "$file"
    fi
done
