diff --git a/install.sh b/install.sh index 308ef31..a466d83 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,7 @@ italic="\033[3m" underline="\033[4m" bold="\033[1m" +yellow="\033[0;33m" reset="\033[0m" KYMSU_PATH=`pwd` @@ -28,6 +29,16 @@ rm -rf $pluginpath echo -e "Copying plugins in ${bold}$pluginpath${reset} ..." cp -R "${KYMSU_PATH}/plugins.d" $HOME/.kymsu +for F in $HOME/.kymsu/plugins.d/*.sh +do + q=$(xattr -l "$F" | grep "com.apple.quarantine") + + if [ "$q" != "" ]; then + echo -e "${yellow}Clear quarantine flag...${reset}" + xattr -d com.apple.quarantine "$F" + fi +done + if [ -n "$disabled" ]; then echo -e "Disabling previous disabled plugins ..."