I'm playing around with listing the files and folders for Firefox profiles on a mac using a shell script. Right now, my code will get the profile folder names and put them in a list, but it splits the items in the list whenever it hits a space. I can't seem to find a way to concatenate the two parts of the whole folder path.
For example, the path /Users/username/Library/Application Support/Firefox/Profiles/ will end up being /Users/username/Library/Application Support/Firefox/Profiles/
Here is my code:
firefoxProfiles=$(find "/Users/$userName/Library/Application Support/Firefox/Profiles" -name '*.default*' -type d)
for x in $firefoxProfiles; do
echo "$x"