install.sh
-clear quarantine flag in plugins install
This commit is contained in:
+11
@@ -3,6 +3,7 @@
|
|||||||
italic="\033[3m"
|
italic="\033[3m"
|
||||||
underline="\033[4m"
|
underline="\033[4m"
|
||||||
bold="\033[1m"
|
bold="\033[1m"
|
||||||
|
yellow="\033[0;33m"
|
||||||
reset="\033[0m"
|
reset="\033[0m"
|
||||||
|
|
||||||
KYMSU_PATH=`pwd`
|
KYMSU_PATH=`pwd`
|
||||||
@@ -28,6 +29,16 @@ rm -rf $pluginpath
|
|||||||
echo -e "Copying plugins in ${bold}$pluginpath${reset} ..."
|
echo -e "Copying plugins in ${bold}$pluginpath${reset} ..."
|
||||||
cp -R "${KYMSU_PATH}/plugins.d" $HOME/.kymsu
|
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
|
if [ -n "$disabled" ]; then
|
||||||
|
|
||||||
echo -e "Disabling previous disabled plugins ..."
|
echo -e "Disabling previous disabled plugins ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user