diff --git a/common/predictive-text/build.sh b/common/predictive-text/build.sh index d54a93dbf4..12c0d2b2b9 100755 --- a/common/predictive-text/build.sh +++ b/common/predictive-text/build.sh @@ -6,7 +6,7 @@ # Fails the build if a specified file does not exist. assert ( ) { - if ! [ -f $1 ]; then + if ! [ -f "$1" ]; then fail "Build failed." exit 1 fi @@ -40,7 +40,7 @@ fail ( ) { # To get the inner source code, include the file generated by this function, # then use name.toString() where `name` is the name passed into this # function. -wrap_worker_code() { +wrap_worker_code ( ) { name="$1" js="$2" echo "// Autogenerated code. Do not modify!"