diff options
Diffstat (limited to 'scripts/openapi-peertube-version.sh')
-rwxr-xr-x | scripts/openapi-peertube-version.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/openapi-peertube-version.sh b/scripts/openapi-peertube-version.sh index c638291f6..4eb481e64 100755 --- a/scripts/openapi-peertube-version.sh +++ b/scripts/openapi-peertube-version.sh | |||
@@ -1,4 +1,6 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
1 | # Version key/value should be on his own line | 3 | # Version key/value should be on his own line |
2 | PACKAGE_VERSION=$(node -p "require('./package.json').version") | 4 | PACKAGE_VERSION=$(node -p "require('./package.json').version") |
3 | 5 | ||
4 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" support/doc/api/openapi.yaml | 6 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml |