| Index: chrome/common/extensions/docs/examples/api/nativeMessaging/host/install_host.sh
|
| diff --git a/chrome/common/extensions/docs/examples/api/nativeMessaging/host/install_host.sh b/chrome/common/extensions/docs/examples/api/nativeMessaging/host/install_host.sh
|
| index 4a8a7dffd74e5647623690d2479d8bda254ef599..dc9f22543f2ef03ada861ba44861ce1bf178c146 100755
|
| --- a/chrome/common/extensions/docs/examples/api/nativeMessaging/host/install_host.sh
|
| +++ b/chrome/common/extensions/docs/examples/api/nativeMessaging/host/install_host.sh
|
| @@ -6,12 +6,11 @@
|
| set -e
|
|
|
| DIR="$( cd "$( dirname "$0" )" && pwd )"
|
| -if [ $(uname -s) == 'Darwin' ]; then
|
| +if [ "$(uname -s)" == "Darwin" ]; then
|
| if [ "$(whoami)" == "root" ]; then
|
| TARGET_DIR="/Library/Google/Chrome/NativeMessagingHosts"
|
| else
|
| - TARGET_DIR="
|
| - $HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts"
|
| + TARGET_DIR="$HOME/Library/Application Support/Google/Chrome/NativeMessagingHosts"
|
| fi
|
| else
|
| if [ "$(whoami)" == "root" ]; then
|
| @@ -27,7 +26,7 @@ HOST_NAME=com.google.chrome.example.echo
|
| mkdir -p "$TARGET_DIR"
|
|
|
| # Copy native messaging host manifest.
|
| -cp $DIR/$HOST_NAME.json "$TARGET_DIR"
|
| +cp "$DIR/$HOST_NAME.json" "$TARGET_DIR"
|
|
|
| # Update host path in the manifest.
|
| HOST_PATH=$DIR/native-messaging-example-host
|
| @@ -37,4 +36,4 @@ sed -i -e "s/HOST_PATH/$ESCAPED_HOST_PATH/" "$TARGET_DIR/$HOST_NAME.json"
|
| # Set permissions for the manifest so that all users can read it.
|
| chmod o+r "$TARGET_DIR/$HOST_NAME.json"
|
|
|
| -echo Native messaging host $HOST_NAME has been installed.
|
| +echo "Native messaging host $HOST_NAME has been installed."
|
|
|