Help with Firefox Script

asegura
Contributor

I'm getting an error message when I'm running this script. What I did was copy the cert8.db file into /Library/Application Support/JAMF/bin and want it to copy to the Firefox profile. Below is the error message I get when running it.

find: -exec: no terminating ";" or "+"

#!/bin/bash

find ~/Library/Application Support/Firefox/Profiles -name "*.default" -type d -exec cp /Library/Application Support/JAMF/bin/cert8.db {}/;

2 REPLIES 2

mm2270
Legendary Contributor III

I think the / toward the end is what the issue is. I think the right syntax is just {} ;

asegura
Contributor

I was able to get it to work. Thanks for the response.