]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/openapi-peertube-version.sh
Fix client dev mode
[github/Chocobozzz/PeerTube.git] / scripts / openapi-peertube-version.sh
index c638291f6a08dd12a7ecf1ad4a338df19bfb8e8e..4eb481e6435b277f47feb89722edd00d6aac9aaa 100755 (executable)
@@ -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