userscripts/scripts/bump-version.sh

8 lines
156 B
Bash
Executable File

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