Skip to content

Commit 550f0cd

Browse files
authored
Merge pull request #18 from lightninglabs/bash-syntax-error
scripts: Replace sh with bash to fix syntax error
2 parents 7c9c125 + d34324d commit 550f0cd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"scripts": {
1717
"build": "NODE_ENV=production webpack",
1818
"dev": "webpack --watch --stats-error-details",
19-
"update-protos": "sh scripts/update_protos.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag} ${npm_package_config_tapd_release_tag} ${npm_package_config_lit_release_tag}",
20-
"generate": "sh scripts/generate_types.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag} ${npm_package_config_tapd_release_tag} ${npm_package_config_lit_release_tag} ${npm_package_config_protoc_version}",
19+
"update-protos": "bash scripts/update_protos.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag} ${npm_package_config_tapd_release_tag} ${npm_package_config_lit_release_tag}",
20+
"generate": "bash scripts/generate_types.sh ${npm_package_config_lnd_release_tag} ${npm_package_config_loop_release_tag} ${npm_package_config_pool_release_tag} ${npm_package_config_faraday_release_tag} ${npm_package_config_tapd_release_tag} ${npm_package_config_lit_release_tag} ${npm_package_config_protoc_version}",
2121
"prettier": "prettier --check '**/*.ts*'",
2222
"prettier-write": "prettier --check --write '**/*.ts*'",
2323
"lint": "tslint -p tsconfig.json",

scripts/generate_types.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ esac
3636

3737
mkdir -p protoc
3838
if [[ $platform == 'Linux' ]]; then
39-
PROTOC_URL="https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip"
39+
PROTOC_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip"
4040
elif [[ $platform == 'Mac' ]]; then
41-
PROTOC_URL="https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-osx-x86_64.zip"
41+
PROTOC_URL="https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-osx-x86_64.zip"
4242
else
4343
echo "Cannot download protoc. ${platform} is not currently supported by ts-protoc-gen"
4444
exit 1
@@ -129,7 +129,7 @@ protoc/bin/protoc \
129129
$TS_PROTO_OPTIONS \
130130
firewall.proto \
131131
lit-sessions.proto \
132-
lit-autopilot.proto
132+
lit-autopilot.proto
133133

134134
# Temporarily generate schema files in order to provide metadata
135135
# about the services and subscription methods to the api classes
@@ -217,7 +217,7 @@ protoc/bin/protoc \
217217
$SCHEMA_PROTO_OPTIONS \
218218
firewall.proto \
219219
lit-sessions.proto \
220-
lit-autopilot.proto
220+
lit-autopilot.proto
221221

222222
# Cleanup proto directory/files
223223
rm -rf *.proto protoc

0 commit comments

Comments
 (0)