userscripts/scripts/bump-version.sh
2023-01-04 01:15:36 +05:30

7 lines
148 B
Bash
Executable File

#!/bin/bash
script=$1
echo $script
find . -name "$script" -exec sed -i "s=\(// @version[ ]*\)[0-9]*.[0-9]*.[0-9]*=\\1$(date -I'seconds')=g" {} \;