You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
256 B

#!/bin/bash
version="${1}"
if [[ -z "${version}" ]]; then
echo "usage: supply a cap/psx module version to target"
exit 1
fi
for x in $(find . -name 'go.mod'); do
sed -i -e 's@kernel.org/\([^ ]*\) v.*$@kernel.org/\1 '"${version}@" "${x}"
done