userscripts/scripts/bump-version.sh

8 lines
156 B
Bash
Raw Normal View History

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