Misc cleanup / documentation

This commit is contained in:
hensm
2018-11-28 07:56:29 +00:00
parent f8f997db76
commit 5ee6b25cb7
2 changed files with 10 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/sh
if [ "$2" != "/" ]
then
# If the target location isn't root, we need to rewrite
# the manifest path to point to the user directory.
if [ "$2" != "/" ]; then
manifestPath=$2"/Library/Application Support/Mozilla/NativeMessagingHosts/fx_cast_bridge.json"
sed -i.bak 's,"path": "/Library,"path": "'$2'/Library,g' "$manifestPath"
rm "$manifestPath.bak"