X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fopenapi-peertube-version.sh;h=4eb481e6435b277f47feb89722edd00d6aac9aaa;hb=0e9c3b2810aa3fc8bbf5275e42ce621efc6cdb66;hp=c638291f6a08dd12a7ecf1ad4a338df19bfb8e8e;hpb=1d859b5afa88583dc27027fe14d0aa13e24a44a3;p=github%2FChocobozzz%2FPeerTube.git 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 @@ +#!/usr/bin/env bash + # Version key/value should be on his own line PACKAGE_VERSION=$(node -p "require('./package.json').version") -sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" support/doc/api/openapi.yaml +sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml