Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
morgan
/
libcap
/
783d9b5c5f5038cbbe166c0cdf6d356edb1c9f7c
/
.
/
gomods.sh
blob: 890cccd2b4b09dba2e9cd03faf4009452c505e02 [
file
] [
log
] [
blame
]
#!/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