File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
22<OfficeApp xmlns =" http://schemas.microsoft.com/office/appforoffice/1.1" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns : bt =" http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns : mailappor =" http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi : type =" MailApp" >
33 <Id >c5549a21-aefb-4ba8-ae7c-b77bceab4023</Id >
4- <Version >1.0.0.0 </Version >
4+ <Version >1.0.0</Version >
55 <ProviderName >Odoo</ProviderName >
66 <DefaultLocale >en-US</DefaultLocale >
77 <DisplayName DefaultValue =" Odoo for Outlook" />
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ helpFunction ()
4+ {
5+ echo " "
6+ echo " Usage: $0 -d odoo.com/subdomain"
7+ echo -e " \t-d The domain that will replace localhost:3000 in the manifest.xml and api.js files."
8+ exit 1 # Exit script after printing help
9+ }
10+
11+ while getopts " d:" opt
12+ do
13+ case " $opt " in
14+ d ) parameterD=" $OPTARG " ;;
15+ ? ) helpFunction ;; # Print helpFunction in case parameter is non-existent
16+ esac
17+ done
18+
19+ # Print helpFunction in case parameters are empty
20+ if [ -z " $parameterD " ]
21+ then
22+ echo " Some or all of the parameters are empty" ;
23+ helpFunction
24+ fi
25+
26+ escapedD=$( echo " $parameterD " | sed ' s/\//\\\//g' )
27+ sed -i " s/localhost:3000/$escapedD /" dist/manifest.xml
28+ sed -i " s/localhost:3000/$escapedD /" dist/taskpane.js
You can’t perform that action at this time.
0 commit comments