I need to remove multiple chrome extensions from several hundred devices. I have a script that will see if a certain extension exists and if it does then deletes the Default folder. How can I add multiple extensions to my script so that if any of these extensions exist the Default folder is deleted? The script currently looks like this:#!/bin/bashcurrentUser=`ls -l /dev/console | awk '{print $3}'`if [ -d /Users/$currentUser/Library/Application Support/Google/Chrome/Default/Extensions/omghfjlpggmjjaagoclmmobgdodcjboh ]; thenrm -rf /Users/$currentUser/Library/Application Support/Google/Chrome/Default && killall Google Chrome  && echo <result>Delete Browsec</result>elseecho <result>No</result>fi
Removing mulitple extensions in chrome
bash
There are various minor issues and things I don't understand in your script which I asked about in my comment. In the meantime, without touching anything else in your script, you could just provide a list of extension names as an array:#!/bin/bashcurrentUser=`ls -l /dev/console | awk '{print $3}'`exts=(omghfjlpggmjjaagoclmmobgdodcjboh foofoobarbar barbarfofo)for extension in ${exts[@]};do    if [ -d /Users/$currentUser/Library/Application Support/Google/Chrome/Default/Extensions/$extension ]; then        rm -rf /Users/$currentUser/Library/Application Support/Google/Chrome/Default && killall Google Chrome  && echo <result>Delete Browsec</result>    else        echo <result>No</result>    fidoneI don't know what the target OSs are but I must point out that this is not portable at all and will fail on any Linux for example. 