userscripts/scripts/bump-version.sh

7 lines
136 B
Bash
Raw Normal View History

2023-01-03 19:45:36 +00:00
#!/bin/bash
script=$1
echo $script
2023-01-03 19:51:13 +00:00
find . -name "$script" -exec sed -i '' -e "s=\(// @version[ ]*\).*=\\1$(date -I'seconds')=g" {} \;