File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,19 @@ function build_sdk {
41
41
function pick_node8 {
42
42
cd " ${DIR} "
43
43
cp package.node8.json functions/package.json
44
- sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
44
+ # we have to do the -e flag here so that it work both on linux and mac os, but that creates an extra
45
+ # backup file called package.json-e that we should clean up afterwards.
46
+ sed -i -e " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
47
+ rm -f functions/package.json-e
45
48
}
46
49
47
50
function pick_node10 {
48
51
cd " ${DIR} "
49
52
cp package.node10.json functions/package.json
50
- sed -i ' ' " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
53
+ # we have to do the -e flag here so that it work both on linux and mac os, but that creates an extra
54
+ # backup file called package.json-e that we should clean up afterwards.
55
+ sed -i -e " s/firebase-functions.tgz/firebase-functions-${TIMESTAMP} .tgz/g" functions/package.json
56
+ rm -f functions/package.json-e
51
57
}
52
58
53
59
function install_deps {
@@ -101,7 +107,7 @@ function run_tests {
101
107
function cleanup {
102
108
announce " Performing cleanup..."
103
109
delete_all_functions
104
- rm " ${DIR} /functions/firebase-functions-* .tgz"
110
+ rm " ${DIR} /functions/firebase-functions-${TIMESTAMP} .tgz"
105
111
rm " ${DIR} /functions/package.json"
106
112
rm -f " ${DIR} /functions/firebase-debug.log"
107
113
rm -rf " ${DIR} /functions/lib"
You can’t perform that action at this time.
0 commit comments