mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
13 lines
395 B
Bash
Executable File
13 lines
395 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
version_major_minor_x="$(cut -f1-2 -d "." version.txt).x"
|
|
|
|
# skip if version is already in the list
|
|
if ! grep -q "$version_major_minor_x" SECURITY.md; then
|
|
# prepend new version to the list
|
|
sed -i "s/white_check_mark:/x: /g" SECURITY.md
|
|
sed -i "s/^\(| -* | -* |\)$/\1\n| $version_major_minor_x | :white_check_mark: |/" SECURITY.md
|
|
fi
|