Skip to content

Commit 18ba514

Browse files
committed
Fixed build
Signed-off-by: Neha Gokhale <[email protected]>
1 parent 6565b96 commit 18ba514

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/generateTS.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ replace_string_in_file() {
4646
local old_string_with_common_canvas_path="\"\$ref\":\ \"https:\/\/api.dataplatform.ibm.com\/schemas\/common-canvas\/"$url"\/"
4747
local new_string="\"\$ref\":\ \"\.\/"
4848

49-
sed -i '' "s/$old_string/$new_string/g" "$file_path"
50-
sed -i '' "s/$old_string_with_common_canvas_path/$new_string/g" "$file_path"
49+
sed -i'' "s/$old_string/$new_string/g" "$file_path"
50+
sed -i'' "s/$old_string_with_common_canvas_path/$new_string/g" "$file_path"
5151
# Warning: The above command runs OK on the build machine without a
5252
# space between the -i and the double quotes. However, if running
5353
# locally on a Mac a space is needed.
@@ -179,7 +179,7 @@ npx json2ts --bannerComment "$ts_prologue" expression-info-v3-schema.json ../typ
179179
# currently convert these to readonly keywords in the TS file. The line below looks for
180180
# @readonly which must be added to the description of the property and then prefixes
181181
# the line two below the comment with the 'readonly' keyword.
182-
sed -i '' '/@readonly/ { n; n; s/^/readonly/; }' "../types/canvas-info-v3.ts"
182+
sed -i'' '/@readonly/ { n; n; s/^/readonly/; }' "../types/canvas-info-v3.ts"
183183

184184
# Create an Typescript index file
185185
# We have to export explicitely from canvas-info and palete because they reference

0 commit comments

Comments
 (0)