- cp -a "$i" "$(APPLICATIONS)/$(APP)"
- chmod +w "$(APPLICATIONS)/$(APP)"/*
- xattr -c "$(APPLICATIONS)/$(APP)"/*
+ cp -a "$file" "${APPLICATIONS}/${file}"
+ chmod -R +w "${APPLICATIONS}/${file}"
+ xattr -rc "${APPLICATIONS}/${file}"
+ APP=`basename "$file" .app`
+ INSTALLED="${INSTALLED} ${APP}"