fix: trim whitespace from plugin version extraction
This commit is contained in:
@@ -46,7 +46,7 @@ jobs:
|
||||
run: |
|
||||
MAIN_FILE="${{ inputs.main_file }}"
|
||||
VERSION=$(grep -E "^\s*\*\s*Version:" -m 1 "$MAIN_FILE" | sed -E 's/.*Version:\s*//')
|
||||
VERSION=$(echo "$VERSION" | tr -d '\r')
|
||||
VERSION=$(echo "$VERSION" | tr -d '\r' | sed -E 's/^[ \t]+//;s/[ \t]+$//')
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "::error::Kon pluginversie niet bepalen."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user